Commit 4c5e0845 authored by Henrik Nordstrom's avatar Henrik Nordstrom
Browse files

felboot: Correct line output

parent 755ff89d
...@@ -66,12 +66,17 @@ int status_led_set(void) ...@@ -66,12 +66,17 @@ int status_led_set(void)
#ifndef NO_PRINTF #ifndef NO_PRINTF
int putchar(int ch) int putchar(int ch)
{ {
return uart_putc(ch); if (ch == '\n')
uart_putc('\r');
uart_putc(ch);
return 0;
} }
int puts(const char *str) int puts(const char *str)
{ {
return uart_puts(str); while(*str)
putchar(*str++);
return 0;
} }
#else #else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment