Fix compilation with if no TCP_IP_DATA_FEATURE

This commit is contained in:
luc lebosse 2017-03-31 21:25:40 +02:00
parent 7db0080d5e
commit f546cb230c
4 changed files with 4 additions and 10 deletions

View File

@ -139,11 +139,6 @@ void BRIDGE::send2TCP(const char * data){
}
}
#endif
void debug_esp(String st){
BRIDGE::send2TCP(st);
}
bool BRIDGE::processFromSerial2TCP()
{
uint8_t i;

View File

@ -745,6 +745,7 @@ void COMMAND::read_buffer_serial(uint8_t *b, size_t len)
}
}
#ifdef TCP_IP_DATA_FEATURE
//read buffer as char
void COMMAND::read_buffer_tcp(uint8_t b)
{
@ -779,6 +780,7 @@ void COMMAND::read_buffer_tcp(uint8_t b)
}
}
}
#endif
//read buffer as char
void COMMAND::read_buffer_serial(uint8_t b)

View File

@ -30,7 +30,9 @@ public:
static String buffer_tcp;
static void read_buffer_serial(uint8_t *b, size_t len);
static void read_buffer_serial(uint8_t b);
#ifdef TCP_IP_DATA_FEATURE
static void read_buffer_tcp(uint8_t b);
#endif
static bool check_command(String buffer, tpipe output, bool handlelockserial = true);
static void execute_command(int cmd,String cmd_params, tpipe output);
static String get_param(String & cmd_params, const char * id, bool withspace = false);

View File

@ -137,11 +137,6 @@
#define FSINFO FSInfo
#endif
#ifndef TCP_IP_DATA_FEATURE
#undef MAX_SRV_CLIENTS
#define MAX_SRV_CLIENTS 0
#endif
#ifndef CONFIG_h
#define CONFIG_h