We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6efa01 commit 04e4082Copy full SHA for 04e4082
examples/platform/silabs/SiWx917/uart.cpp
@@ -27,6 +27,7 @@ extern "C" {
27
#include "assert.h"
28
#include "rsi_board.h"
29
#include "uart.h"
30
+#include "rsi_debug.h"
31
#include <stddef.h>
32
#include <string.h>
33
@@ -131,15 +132,15 @@ int16_t uartLogWrite(const char * log, uint16_t length)
131
132
{
133
return UART_CONSOLE_ERR;
134
}
- for (int i = 0; i < length; i++)
135
+ for (int16_t i = 0; i < length; i++)
136
- Board_UARTPutChar(*log++);
137
+ Board_UARTPutChar(log[i]);
138
139
// To print next log in new line with proper formatting
140
Board_UARTPutChar('\r');
141
Board_UARTPutChar('\n');
142
- return length;
143
+ return length+2;
144
145
146
/*
0 commit comments