Skip to content

Commit 04e4082

Browse files
committed
Modified code as per review comments.
1 parent f6efa01 commit 04e4082

File tree

1 file changed

+4
-3
lines changed
  • examples/platform/silabs/SiWx917

1 file changed

+4
-3
lines changed

examples/platform/silabs/SiWx917/uart.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extern "C" {
2727
#include "assert.h"
2828
#include "rsi_board.h"
2929
#include "uart.h"
30+
#include "rsi_debug.h"
3031
#include <stddef.h>
3132
#include <string.h>
3233

@@ -131,15 +132,15 @@ int16_t uartLogWrite(const char * log, uint16_t length)
131132
{
132133
return UART_CONSOLE_ERR;
133134
}
134-
for (int i = 0; i < length; i++)
135+
for (int16_t i = 0; i < length; i++)
135136
{
136-
Board_UARTPutChar(*log++);
137+
Board_UARTPutChar(log[i]);
137138
}
138139
// To print next log in new line with proper formatting
139140
Board_UARTPutChar('\r');
140141
Board_UARTPutChar('\n');
141142

142-
return length;
143+
return length+2;
143144
}
144145

145146
/*

0 commit comments

Comments
 (0)