From 69cc37d99f4a6fbd6e8256195a7279a66990aaae Mon Sep 17 00:00:00 2001 From: arun-silabs <141724790+arun-silabs@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:27:50 +0530 Subject: [PATCH] Update examples/platform/silabs/SiWx917/uart.cpp Co-authored-by: lpbeliveau-silabs <112982107+lpbeliveau-silabs@users.noreply.github.com> --- examples/platform/silabs/SiWx917/uart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/platform/silabs/SiWx917/uart.cpp b/examples/platform/silabs/SiWx917/uart.cpp index 8d63b3178a44f5..91df5d51e71795 100644 --- a/examples/platform/silabs/SiWx917/uart.cpp +++ b/examples/platform/silabs/SiWx917/uart.cpp @@ -128,7 +128,7 @@ int16_t uartConsoleWrite(const char * Buf, uint16_t BufLength) */ int16_t uartLogWrite(const char * log, uint16_t length) { - if (log == NULL || length < 1) + if (log == NULL || length == 0) { return UART_CONSOLE_ERR; }