Merge pull request #418 from lionleaf/master

Bugfix: Make redirected stdio write initialize UART
pull/423/head
Bogdan Marinescu 2014-07-31 13:43:15 +01:00
commit dd71fab893
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ extern "C" int PREFIX(_read)(FILEHANDLE fh, unsigned char *buffer, unsigned int
if (fh < 3) {
// only read a character at a time from stdin
#if DEVICE_SERIAL
if (!stdio_uart_inited) init_serial();
*buffer = serial_getc(&stdio_uart);
#endif
n = 1;