Skip to content

Commit

Permalink
Fixed regression in USBAPI and CDC (xaljox)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jun 19, 2014
1 parent d2b6f9f commit 11e02db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hardware/arduino/cores/arduino/CDC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ bool WEAK CDC_Setup(Setup& setup)

void Serial_::begin(unsigned long baud_count)
{
peek_buffer = -1;
}

void Serial_::begin(unsigned long baud_count, byte config)
{
peek_buffer = -1;
}

void Serial_::end(void)
Expand Down
3 changes: 2 additions & 1 deletion hardware/arduino/cores/arduino/USBAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ extern USBDevice_ USBDevice;
class Serial_ : public Stream
{
private:
int peek_buffer = -1;
int peek_buffer;
public:
Serial_() { peek_buffer = -1; };
void begin(unsigned long);
void begin(unsigned long, uint8_t);
void end(void);
Expand Down

0 comments on commit 11e02db

Please sign in to comment.