Fixed SerialStream driver blocking while waiting for characters to be received instead of returning EOF.

This commit is contained in:
Dean Camera committed 2010-02-05 03:59:42 +00:00
1 parent 15f84bb8f5
commit 6ba0b860cc
2 files changed
+4

No files matched your search

+3
View File
@@ -44,6 +44,9 @@ static int SerialStream_TxByte(char DataByte, FILE *Stream)
static int SerialStream_RxByte(FILE *Stream)
{
(void)Stream;
if (!(Serial_IsCharReceived()))
return EOF;
return Serial_RxByte();
}