diff options
author | Embedded Micro <support@embeddedmicro.com> | 2014-06-10 08:48:23 -0700 |
---|---|---|
committer | Embedded Micro <support@embeddedmicro.com> | 2014-06-10 08:48:23 -0700 |
commit | 12219b37d5f4569649cd4dac247fbfcee5dfb79b (patch) | |
tree | f6eb5786c05e21ec61f049940af98d147a6f9f5b /cores | |
parent | 2d72650feba4d14008a5a398727fe082ef774c07 (diff) |
Update USBAPI.h
Fixes bug where Serial.read() would always return 0 as the first byte.
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/USBAPI.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h index d506b58..753bc6b 100644 --- a/cores/arduino/USBAPI.h +++ b/cores/arduino/USBAPI.h @@ -28,7 +28,7 @@ extern USBDevice_ USBDevice; class Serial_ : public Stream { private: - int peek_buffer; + int peek_buffer = -1; public: void begin(unsigned long); void begin(unsigned long, uint8_t); |