aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBAPI.h
diff options
context:
space:
mode:
authorEmbedded Micro <support@embeddedmicro.com>2014-06-10 08:48:23 -0700
committerEmbedded Micro <support@embeddedmicro.com>2014-06-10 08:48:23 -0700
commit12219b37d5f4569649cd4dac247fbfcee5dfb79b (patch)
treef6eb5786c05e21ec61f049940af98d147a6f9f5b /cores/arduino/USBAPI.h
parent2d72650feba4d14008a5a398727fe082ef774c07 (diff)
Update USBAPI.h
Fixes bug where Serial.read() would always return 0 as the first byte.
Diffstat (limited to 'cores/arduino/USBAPI.h')
-rw-r--r--cores/arduino/USBAPI.h2
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);