From 2b1c9aea350e883c040bc168fde55934d77c5f47 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Mon, 2 Aug 2010 22:23:48 +0000 Subject: changing available() to return an int (because the Ethernet Client class or another stream might need more than 255 bytes). --- cores/arduino/Stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores/arduino/Stream.h') 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; -- cgit v1.2.3-18-g5258