From 4c5e0845e117a10b3b5d12ee779799491e7b6cfd Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Fri, 17 May 2013 17:07:55 +0200 Subject: [PATCH] felboot: Correct line output --- felboot/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/felboot/main.c b/felboot/main.c index a06ecdf..d8ce7b7 100644 --- a/felboot/main.c +++ b/felboot/main.c @@ -66,12 +66,17 @@ int status_led_set(void) #ifndef NO_PRINTF int putchar(int ch) { - return uart_putc(ch); + if (ch == '\n') + uart_putc('\r'); + uart_putc(ch); + return 0; } int puts(const char *str) { - return uart_puts(str); + while(*str) + putchar(*str++); + return 0; } #else