diff options
author | Cristian Maglie <c.maglie@bug.st> | 2014-06-19 16:52:48 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2014-06-19 16:52:48 +0200 |
commit | f599d519967a938a407ad0daa6c39182f389ef91 (patch) | |
tree | e967951304164bffb990555d72ce437d137f1feb /cores/arduino/CDC.cpp | |
parent | 12219b37d5f4569649cd4dac247fbfcee5dfb79b (diff) |
Fixed regression in USBAPI and CDC (xaljox)
See:
https://github.com/arduino/Arduino/commit/9ac7e30252fce5b9dafde3288519b020b73c37bd#commitcomment-6718676
Diffstat (limited to 'cores/arduino/CDC.cpp')
-rw-r--r-- | cores/arduino/CDC.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cores/arduino/CDC.cpp b/cores/arduino/CDC.cpp index 3cfd1b7..aae91c2 100644 --- a/cores/arduino/CDC.cpp +++ b/cores/arduino/CDC.cpp @@ -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) |