From 3a745af9bf2e196004f1847b1723404c747180a9 Mon Sep 17 00:00:00 2001 From: Sani7 Date: Fri, 8 Dec 2023 12:45:47 +0100 Subject: [PATCH] tcp_cmd change the name of the define/ifdef to make it more obvious what it does --- project/Core/Src/tcp_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/Core/Src/tcp_cmd.c b/project/Core/Src/tcp_cmd.c index 151d67d..2524a4f 100644 --- a/project/Core/Src/tcp_cmd.c +++ b/project/Core/Src/tcp_cmd.c @@ -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, "$>"); }