tcp_cmd
change the name of the define/ifdef to make it more obvious what it does
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#define MAX_TOKENS 10
|
||||
#define MAX_CMD_LEN 50
|
||||
|
||||
#define LINUX
|
||||
#define NCAT
|
||||
|
||||
static const char* TAG = "tcp_cmd";
|
||||
static uint32_t color_txt = 0xffffffff; // Store text color
|
||||
@@ -491,7 +491,7 @@ err_t tcp_cmd_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err) {
|
||||
if (close_conn) {
|
||||
LOG_INFO(TAG, "Closing connection");
|
||||
tcp_cmd_close(pcb);
|
||||
#ifdef LINUX
|
||||
#ifdef NCAT
|
||||
} else {
|
||||
tcp_cmd_write(pcb, "$>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user