mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-12 04:59:02 +08:00
Fix compilation with if no TCP_IP_DATA_FEATURE
This commit is contained in:
parent
7db0080d5e
commit
f546cb230c
@ -139,11 +139,6 @@ void BRIDGE::send2TCP(const char * data){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void debug_esp(String st){
|
|
||||||
BRIDGE::send2TCP(st);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool BRIDGE::processFromSerial2TCP()
|
bool BRIDGE::processFromSerial2TCP()
|
||||||
{
|
{
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
@ -745,6 +745,7 @@ void COMMAND::read_buffer_serial(uint8_t *b, size_t len)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TCP_IP_DATA_FEATURE
|
||||||
//read buffer as char
|
//read buffer as char
|
||||||
void COMMAND::read_buffer_tcp(uint8_t b)
|
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
|
//read buffer as char
|
||||||
void COMMAND::read_buffer_serial(uint8_t b)
|
void COMMAND::read_buffer_serial(uint8_t b)
|
||||||
|
@ -30,7 +30,9 @@ public:
|
|||||||
static String buffer_tcp;
|
static String buffer_tcp;
|
||||||
static void read_buffer_serial(uint8_t *b, size_t len);
|
static void read_buffer_serial(uint8_t *b, size_t len);
|
||||||
static void read_buffer_serial(uint8_t b);
|
static void read_buffer_serial(uint8_t b);
|
||||||
|
#ifdef TCP_IP_DATA_FEATURE
|
||||||
static void read_buffer_tcp(uint8_t b);
|
static void read_buffer_tcp(uint8_t b);
|
||||||
|
#endif
|
||||||
static bool check_command(String buffer, tpipe output, bool handlelockserial = true);
|
static bool check_command(String buffer, tpipe output, bool handlelockserial = true);
|
||||||
static void execute_command(int cmd,String cmd_params, tpipe output);
|
static void execute_command(int cmd,String cmd_params, tpipe output);
|
||||||
static String get_param(String & cmd_params, const char * id, bool withspace = false);
|
static String get_param(String & cmd_params, const char * id, bool withspace = false);
|
||||||
|
@ -137,11 +137,6 @@
|
|||||||
#define FSINFO FSInfo
|
#define FSINFO FSInfo
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef TCP_IP_DATA_FEATURE
|
|
||||||
#undef MAX_SRV_CLIENTS
|
|
||||||
#define MAX_SRV_CLIENTS 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_h
|
#ifndef CONFIG_h
|
||||||
#define CONFIG_h
|
#define CONFIG_h
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user