diff --git a/esp3d/bridge.cpp b/esp3d/bridge.cpp index a8cde28d..3925d9a8 100644 --- a/esp3d/bridge.cpp +++ b/esp3d/bridge.cpp @@ -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; diff --git a/esp3d/command.cpp b/esp3d/command.cpp index e93246db..066d5879 100644 --- a/esp3d/command.cpp +++ b/esp3d/command.cpp @@ -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) diff --git a/esp3d/command.h b/esp3d/command.h index 2967993d..f6793548 100644 --- a/esp3d/command.h +++ b/esp3d/command.h @@ -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); diff --git a/esp3d/config.h b/esp3d/config.h index ebeaafb1..81a8d7b9 100644 --- a/esp3d/config.h +++ b/esp3d/config.h @@ -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