From 12219b37d5f4569649cd4dac247fbfcee5dfb79b Mon Sep 17 00:00:00 2001 From: Embedded Micro Date: Tue, 10 Jun 2014 08:48:23 -0700 Subject: Update USBAPI.h Fixes bug where Serial.read() would always return 0 as the first byte. --- cores/arduino/USBAPI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores/arduino/USBAPI.h') 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); -- cgit v1.2.3-18-g5258