mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Update USBAPI.h
Fixes bug where Serial.read() would always return 0 as the first byte.
This commit is contained in:
parent
09d0843ff3
commit
9ac7e30252
@ -28,7 +28,7 @@ extern USBDevice_ USBDevice;
|
|||||||
class Serial_ : public Stream
|
class Serial_ : public Stream
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
int peek_buffer;
|
int peek_buffer = -1;
|
||||||
public:
|
public:
|
||||||
void begin(unsigned long);
|
void begin(unsigned long);
|
||||||
void begin(unsigned long, uint8_t);
|
void begin(unsigned long, uint8_t);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user