File tree 1 file changed +2
-3
lines changed
examples/platform/silabs/SiWx917
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ extern "C" {
32
32
33
33
#define USART_BAUDRATE 115200 // Baud rate <9600-7372800>
34
34
#define UART_CONSOLE_ERR -1 // Negative value in case of UART Console action failed. Triggers a failure for PW_RPC
35
- #define UART_CONSOLE_SUCCESS 1 // Positive value if UART Console action is success.
36
35
37
36
sl_usart_handle_t usart_handle;
38
37
@@ -132,15 +131,15 @@ int16_t uartLogWrite(const char * log, uint16_t length)
132
131
{
133
132
return UART_CONSOLE_ERR;
134
133
}
135
- for (/* Empty */ ; length ! = 0 ; -- length)
134
+ for (int i = 0 ; i < length; i++ )
136
135
{
137
136
Board_UARTPutChar (*log ++);
138
137
}
139
138
// To print next log in new line with proper formatting
140
139
Board_UARTPutChar (' \r ' );
141
140
Board_UARTPutChar (' \n ' );
142
141
143
- return UART_CONSOLE_SUCCESS ;
142
+ return length ;
144
143
}
145
144
146
145
/*
You can’t perform that action at this time.
0 commit comments