Make Webserver allow HTTP requests for files with up to 50 characters in the path...
[pub/USBasp.git] / LUFA / Drivers / Peripheral / SerialStream.c
index fd5676a..c23d4e1 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
+       \r
+       if (!(Serial_IsCharReceived()))\r
+         return _FDEV_EOF;\r
 \r
        return Serial_RxByte();\r
 }\r