From 2a6f6233af85874287b87441b011ef04da635179 Mon Sep 17 00:00:00 2001 From: bogd Date: Wed, 19 Mar 2025 09:39:02 +0200 Subject: [PATCH] fixed uart tx disabled --- src/SerialPort.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/SerialPort.c b/src/SerialPort.c index 888dc52..7d4d4a6 100644 --- a/src/SerialPort.c +++ b/src/SerialPort.c @@ -50,7 +50,7 @@ #define UART_TX_QUEUE_SIZE (5) #define UART_RX_QUEUE_SIZE (5) -#define UART_DEBUG_MODE 1 +#define UART_DEBUG_MODE 0 #if CONFIG_WEBGUIAPP_UART_TRANSPORT_ENABLE @@ -64,7 +64,6 @@ static char rxbuf[CONFIG_WEBGUIAPP_UART_BUF_SIZE]; esp_err_t TransmitSerialPort(char *data, int ln) { - return ESP_OK; UART_DATA_SEND_STRUCT DSS; char *buf = malloc(ln); if (!buf) @@ -93,7 +92,6 @@ static void ReceiveHandlerAPI() M.outputDataBuffer = respbuf; M.outputDataLength = EXPECTED_MAX_DATA_SIZE; ServiceDataHandler(&M); - if (M.outputDataBuffer[0] != 0x00 && M.outputDataLength > 0) { TransmitSerialPort(M.outputDataBuffer, MIN(EXPECTED_MAX_DATA_SIZE, strlen(M.outputDataBuffer)));