We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65a4b40 + 11e02db commit 1a305cdCopy full SHA for 1a305cd
hardware/arduino/avr/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)
hardware/arduino/avr/cores/arduino/USBAPI.h
@@ -36,8 +36,9 @@ struct ring_buffer;
36
class Serial_ : public Stream
37
38
private:
39
- int peek_buffer = -1;
+ int peek_buffer;
40
public:
41
+ Serial_() { peek_buffer = -1; };
42
void begin(unsigned long);
43
void begin(unsigned long, uint8_t);
44
void end(void);
0 commit comments