From 658234a0b0e380cf42838544515a9807a05600fa Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Fri, 5 Feb 2010 06:44:10 +0000 Subject: Oops - serial stream driver should return _FDEV_EOF when no data has been received, not EOF. --- LUFA/Drivers/Peripheral/SerialStream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LUFA/Drivers/Peripheral') diff --git a/LUFA/Drivers/Peripheral/SerialStream.c b/LUFA/Drivers/Peripheral/SerialStream.c index 4ae0a7f16..c23d4e16a 100644 --- a/LUFA/Drivers/Peripheral/SerialStream.c +++ b/LUFA/Drivers/Peripheral/SerialStream.c @@ -46,7 +46,7 @@ static int SerialStream_RxByte(FILE *Stream) (void)Stream; if (!(Serial_IsCharReceived())) - return EOF; + return _FDEV_EOF; return Serial_RxByte(); } -- cgit v1.2.3