diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-05 06:44:10 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-05 06:44:10 +0000 |
commit | 658234a0b0e380cf42838544515a9807a05600fa (patch) | |
tree | 5a540a000aed022e5881536c63370b89e44825ff /LUFA/Drivers/Peripheral | |
parent | 6ba0b860ccd1a1f91fd25e4dc1ee162e9eb710ab (diff) | |
download | lufa-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.c | 2 |
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();
}
|