Fixed SerialStream driver blocking while waiting for characters to be received instea...
authorDean Camera <dean@fourwalledcubicle.com>
Fri, 5 Feb 2010 03:59:42 +0000 (03:59 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Fri, 5 Feb 2010 03:59:42 +0000 (03:59 +0000)
LUFA/Drivers/Peripheral/SerialStream.c
LUFA/ManPages/ChangeLog.txt

index fd5676a..4ae0a7f 100644 (file)
@@ -44,6 +44,9 @@ static int SerialStream_TxByte(char DataByte, FILE *Stream)
 static int SerialStream_RxByte(FILE *Stream)\r
 {\r
        (void)Stream;\r
 static int SerialStream_RxByte(FILE *Stream)\r
 {\r
        (void)Stream;\r
+       \r
+       if (!(Serial_IsCharReceived()))\r
+         return EOF;\r
 \r
        return Serial_RxByte();\r
 }\r
 \r
        return Serial_RxByte();\r
 }\r
index 521ab38..5fd1b2b 100644 (file)
@@ -53,6 +53,7 @@
   *  - Fixed Pipe_IsEndpointBound() not taking the endpoint's direction into account\r
   *  - Fixed EEPROM and FLASH ISP programming in the AVRISP project\r
   *  - Fixed incorrect values of USB_CONFIG_ATTR_SELFPOWERED and USB_CONFIG_ATTR_REMOTEWAKEUP tokens (thanks to Claus Christensen)\r
   *  - Fixed Pipe_IsEndpointBound() not taking the endpoint's direction into account\r
   *  - Fixed EEPROM and FLASH ISP programming in the AVRISP project\r
   *  - Fixed incorrect values of USB_CONFIG_ATTR_SELFPOWERED and USB_CONFIG_ATTR_REMOTEWAKEUP tokens (thanks to Claus Christensen)\r
+  *  - Fixed SerialStream driver blocking while waiting for characters to be received instead of returning EOF\r
   *\r
   *  \section Sec_ChangeLog091223 Version 091223\r
   *\r
   *\r
   *  \section Sec_ChangeLog091223 Version 091223\r
   *\r