felboot: Correct line output
This commit is contained in:
parent
755ff89dde
commit
4c5e0845e1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user