aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2010-11-20 11:45:05 -0500
committerDavid A. Mellis <d.mellis@arduino.cc>2010-11-20 11:45:05 -0500
commit6ac63fbadfd25eea9c1b4aa375c238df92ee23cb (patch)
tree1cb3b32ae82d54781c37813e3a40fecaab410fae /cores/arduino
parente46c6f46af5e2565c5d8a7192808825743df1c14 (diff)
SD File object implements Stream.
Added peak() and available() using a single byte buffer. Added flush().
Diffstat (limited to 'cores/arduino')
-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 c98759b..93d8275 100644
--- a/cores/arduino/Stream.h
+++ b/cores/arduino/Stream.h
@@ -28,6 +28,7 @@ class Stream : public Print
public:
virtual int available() = 0;
virtual int read() = 0;
+ virtual int peek() = 0;
virtual void flush() = 0;
};