Skip to content

Commit 69cc37d

Browse files
Update examples/platform/silabs/SiWx917/uart.cpp
Co-authored-by: lpbeliveau-silabs <112982107+lpbeliveau-silabs@users.noreply.github.com>
1 parent d0da4d0 commit 69cc37d

File tree

1 file changed

+1
-1
lines changed
  • examples/platform/silabs/SiWx917

1 file changed

+1
-1
lines changed

examples/platform/silabs/SiWx917/uart.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ int16_t uartConsoleWrite(const char * Buf, uint16_t BufLength)
128128
*/
129129
int16_t uartLogWrite(const char * log, uint16_t length)
130130
{
131-
if (log == NULL || length < 1)
131+
if (log == NULL || length == 0)
132132
{
133133
return UART_CONSOLE_ERR;
134134
}

0 commit comments

Comments
 (0)