We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e97ef2d commit 00b8833Copy full SHA for 00b8833
arduino/cores/arduino/CDC.cpp
@@ -116,10 +116,12 @@ bool WEAK CDC_Setup(Setup& setup)
116
117
void Serial_::begin(unsigned long baud_count)
118
{
119
+ peek_buffer = -1;
120
}
121
122
void Serial_::begin(unsigned long baud_count, byte config)
123
124
125
126
127
void Serial_::end(void)
arduino/cores/arduino/USBAPI.h
@@ -28,8 +28,9 @@ extern USBDevice_ USBDevice;
28
class Serial_ : public Stream
29
30
private:
31
- int peek_buffer = -1;
+ int peek_buffer;
32
public:
33
+ Serial_() { peek_buffer = -1; };
34
void begin(unsigned long);
35
void begin(unsigned long, uint8_t);
36
void end(void);
0 commit comments