Skip to content

Commit f546cb2

Browse files
committed
Fix compilation with if no TCP_IP_DATA_FEATURE
1 parent 7db0080 commit f546cb2

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

esp3d/bridge.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,6 @@ void BRIDGE::send2TCP(const char * data){
139139
}
140140
}
141141
#endif
142-
143-
void debug_esp(String st){
144-
BRIDGE::send2TCP(st);
145-
}
146-
147142
bool BRIDGE::processFromSerial2TCP()
148143
{
149144
uint8_t i;

esp3d/command.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ void COMMAND::read_buffer_serial(uint8_t *b, size_t len)
745745
}
746746
}
747747

748+
#ifdef TCP_IP_DATA_FEATURE
748749
//read buffer as char
749750
void COMMAND::read_buffer_tcp(uint8_t b)
750751
{
@@ -779,6 +780,7 @@ void COMMAND::read_buffer_tcp(uint8_t b)
779780
}
780781
}
781782
}
783+
#endif
782784

783785
//read buffer as char
784786
void COMMAND::read_buffer_serial(uint8_t b)

esp3d/command.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ class COMMAND
3030
static String buffer_tcp;
3131
static void read_buffer_serial(uint8_t *b, size_t len);
3232
static void read_buffer_serial(uint8_t b);
33+
#ifdef TCP_IP_DATA_FEATURE
3334
static void read_buffer_tcp(uint8_t b);
35+
#endif
3436
static bool check_command(String buffer, tpipe output, bool handlelockserial = true);
3537
static void execute_command(int cmd,String cmd_params, tpipe output);
3638
static String get_param(String & cmd_params, const char * id, bool withspace = false);

esp3d/config.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@
137137
#define FSINFO FSInfo
138138
#endif
139139

140-
#ifndef TCP_IP_DATA_FEATURE
141-
#undef MAX_SRV_CLIENTS
142-
#define MAX_SRV_CLIENTS 0
143-
#endif
144-
145140
#ifndef CONFIG_h
146141
#define CONFIG_h
147142

0 commit comments

Comments
 (0)