change the name of the define/ifdef to make it more obvious what it does
This commit is contained in:
2023-12-08 12:45:47 +01:00
committed by Sander Speetjens
parent 2a4de4fe34
commit 3a745af9bf

View File

@@ -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, "$>");
}