diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2010-08-02 22:23:48 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2010-08-02 22:23:48 +0000 |
commit | 2b1c9aea350e883c040bc168fde55934d77c5f47 (patch) | |
tree | 445d04dab561ce46038dacf1b67dcf8202cd77e1 /cores/arduino/Stream.h | |
parent | 58f043e0f3e1551206331efc00cdf47c4c885c10 (diff) |
changing available() to return an int (because the Ethernet Client class or another stream might need more than 255 bytes).
Diffstat (limited to 'cores/arduino/Stream.h')
-rw-r--r-- | cores/arduino/Stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/Stream.h b/cores/arduino/Stream.h index 1d3e50b..1c72ec2 100644 --- a/cores/arduino/Stream.h +++ b/cores/arduino/Stream.h @@ -26,7 +26,7 @@ class Stream : public Print { public: - virtual uint8_t available() = 0; + virtual int available() = 0; virtual int peek() = 0; virtual int read() = 0; virtual void flush() = 0; |