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/HardwareSerial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores/arduino/HardwareSerial.h') diff --git a/cores/arduino/HardwareSerial.h b/cores/arduino/HardwareSerial.h index 884f9fe..1770a63 100755 --- a/cores/arduino/HardwareSerial.h +++ b/cores/arduino/HardwareSerial.h @@ -48,7 +48,7 @@ class HardwareSerial : public Stream uint8_t rxen, uint8_t txen, uint8_t rxcie, uint8_t udre, uint8_t u2x); void begin(long); void end(); - virtual uint8_t available(void); + virtual int available(void); virtual int peek(void); virtual int read(void); virtual void flush(void); -- cgit v1.2.3-18-g5258