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_TOKENS 10
|
||||||
#define MAX_CMD_LEN 50
|
#define MAX_CMD_LEN 50
|
||||||
|
|
||||||
#define LINUX
|
#define NCAT
|
||||||
|
|
||||||
static const char* TAG = "tcp_cmd";
|
static const char* TAG = "tcp_cmd";
|
||||||
static uint32_t color_txt = 0xffffffff; // Store text color
|
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) {
|
if (close_conn) {
|
||||||
LOG_INFO(TAG, "Closing connection");
|
LOG_INFO(TAG, "Closing connection");
|
||||||
tcp_cmd_close(pcb);
|
tcp_cmd_close(pcb);
|
||||||
#ifdef LINUX
|
#ifdef NCAT
|
||||||
} else {
|
} else {
|
||||||
tcp_cmd_write(pcb, "$>");
|
tcp_cmd_write(pcb, "$>");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user