From d3cb43c1c981ee3726d26c05ec3e42fffaa080c6 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sun, 4 Jul 2010 23:31:55 +0000 Subject: Adding a peek() function to Stream and HardwareSerial (Serial). --- cores/arduino/HardwareSerial.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cores/arduino/HardwareSerial.h') diff --git a/cores/arduino/HardwareSerial.h b/cores/arduino/HardwareSerial.h index cae1447..884f9fe 100755 --- a/cores/arduino/HardwareSerial.h +++ b/cores/arduino/HardwareSerial.h @@ -49,6 +49,7 @@ class HardwareSerial : public Stream void begin(long); void end(); virtual uint8_t available(void); + virtual int peek(void); virtual int read(void); virtual void flush(void); virtual void write(uint8_t); -- cgit v1.2.3-18-g5258