Merge branch 'master' of github.com:mbedmicro/mbed

pull/423/head
Bogdan Marinescu 2014-07-31 14:45:32 +01:00
commit 47c6f8cf35
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;