mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Fixed regression in USBAPI and CDC (xaljox)
See:
9ac7e30252 (commitcomment-6718676)
This commit is contained in:
parent
d2b6f9fab8
commit
11e02db954
@ -116,10 +116,12 @@ bool WEAK CDC_Setup(Setup& setup)
|
|||||||
|
|
||||||
void Serial_::begin(unsigned long baud_count)
|
void Serial_::begin(unsigned long baud_count)
|
||||||
{
|
{
|
||||||
|
peek_buffer = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Serial_::begin(unsigned long baud_count, byte config)
|
void Serial_::begin(unsigned long baud_count, byte config)
|
||||||
{
|
{
|
||||||
|
peek_buffer = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Serial_::end(void)
|
void Serial_::end(void)
|
||||||
|
@ -28,8 +28,9 @@ extern USBDevice_ USBDevice;
|
|||||||
class Serial_ : public Stream
|
class Serial_ : public Stream
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
int peek_buffer = -1;
|
int peek_buffer;
|
||||||
public:
|
public:
|
||||||
|
Serial_() { peek_buffer = -1; };
|
||||||
void begin(unsigned long);
|
void begin(unsigned long);
|
||||||
void begin(unsigned long, uint8_t);
|
void begin(unsigned long, uint8_t);
|
||||||
void end(void);
|
void end(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user