Skip to content

Commit

Permalink
Modified code as per review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-silabs committed Feb 29, 2024
1 parent f6efa01 commit 04e4082
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/platform/silabs/SiWx917/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ extern "C" {
#include "assert.h"
#include "rsi_board.h"
#include "uart.h"
#include "rsi_debug.h"
#include <stddef.h>
#include <string.h>

Expand Down Expand Up @@ -131,15 +132,15 @@ int16_t uartLogWrite(const char * log, uint16_t length)
{
return UART_CONSOLE_ERR;
}
for (int i = 0; i < length; i++)
for (int16_t i = 0; i < length; i++)
{
Board_UARTPutChar(*log++);
Board_UARTPutChar(log[i]);
}
// To print next log in new line with proper formatting
Board_UARTPutChar('\r');
Board_UARTPutChar('\n');

return length;
return length+2;
}

/*
Expand Down

0 comments on commit 04e4082

Please sign in to comment.