aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Stream.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2010-07-04 23:31:55 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2010-07-04 23:31:55 +0000
commitd3cb43c1c981ee3726d26c05ec3e42fffaa080c6 (patch)
tree61c23e7f21927311c04853da13a0f25a550d8c8c /cores/arduino/Stream.h
parent2c32369685d38f7367328d470571dd2f9a1104c7 (diff)
Adding a peek() function to Stream and HardwareSerial (Serial).
Diffstat (limited to 'cores/arduino/Stream.h')
-rw-r--r--cores/arduino/Stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cores/arduino/Stream.h b/cores/arduino/Stream.h
index 3bf5283..1d3e50b 100644
--- a/cores/arduino/Stream.h
+++ b/cores/arduino/Stream.h
@@ -27,6 +27,7 @@ class Stream : public Print
{
public:
virtual uint8_t available() = 0;
+ virtual int peek() = 0;
virtual int read() = 0;
virtual void flush() = 0;
};