Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 932b850

Browse files
committedJun 10, 2014
Update USBAPI.h
Fixes bug where Serial.read() would always return 0 as the first byte.
1 parent bafd30d commit 932b850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cores/arduino/USBAPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extern USBDevice_ USBDevice;
2828
class Serial_ : public Stream
2929
{
3030
private:
31-
int peek_buffer;
31+
int peek_buffer = -1;
3232
public:
3333
void begin(unsigned long);
3434
void begin(unsigned long, uint8_t);

0 commit comments

Comments
 (0)
Please sign in to comment.