Skip to content

Commit e97ef2d

Browse files
committed
Update USBAPI.h
Fixes bug where Serial.read() would always return 0 as the first byte.
1 parent d5ed2ad commit e97ef2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino/cores/arduino/USBAPI.h

+1-1
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)