aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Peripheral
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-02-05 06:44:10 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-02-05 06:44:10 +0000
commit658234a0b0e380cf42838544515a9807a05600fa (patch)
tree5a540a000aed022e5881536c63370b89e44825ff /LUFA/Drivers/Peripheral
parent6ba0b860ccd1a1f91fd25e4dc1ee162e9eb710ab (diff)
downloadlufa-658234a0b0e380cf42838544515a9807a05600fa.tar.gz
lufa-658234a0b0e380cf42838544515a9807a05600fa.tar.bz2
lufa-658234a0b0e380cf42838544515a9807a05600fa.zip
Oops - serial stream driver should return _FDEV_EOF when no data has been received, not EOF.
Diffstat (limited to 'LUFA/Drivers/Peripheral')
-rw-r--r--LUFA/Drivers/Peripheral/SerialStream.c2
1 files changed, 1 insertions, 1 deletions
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();
}