Skip to content

Commit a1e6870

Browse files
committed
Update USBAPI.h
Fixes bug where Serial.read() would always return 0 as the first byte. (Filtered from arduino/Arduino@9ac7e30)
1 parent 9f593a7 commit a1e6870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/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)