felboot: Correct line output

This commit is contained in:
Henrik Nordstrom 2013-05-17 17:07:55 +02:00
parent 755ff89dde
commit 4c5e0845e1

View File

@ -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