We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7bd8c32 + 913febd commit af63b57Copy full SHA for af63b57
platform/mbed_board.c
@@ -88,15 +88,15 @@ void mbed_error_vfprintf(const char * format, va_list arg) {
88
serial_init(&stdio_uart, STDIO_UART_TX, STDIO_UART_RX);
89
}
90
#if MBED_CONF_PLATFORM_STDIO_CONVERT_NEWLINES
91
- for (unsigned int i = 0; i < size; i++) {
+ for (int i = 0; i < size; i++) {
92
if (buffer[i] == '\n' && stdio_out_prev != '\r') {
93
serial_putc(&stdio_uart, '\r');
94
95
serial_putc(&stdio_uart, buffer[i]);
96
stdio_out_prev = buffer[i];
97
98
#else
99
100
101
102
#endif
0 commit comments