From 716fba8dd98f54dcd816fa69cafdcb681b54ab11 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Mon, 2 Jan 2017 11:17:30 +0000 Subject: Add Print::availableForWrite If available() is in the base Stream class, then availableForWrite() should be in the base Print class --- 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 8a5bf95..17000c2 100644 --- a/cores/arduino/HardwareSerial.h +++ b/cores/arduino/HardwareSerial.h @@ -124,7 +124,7 @@ class HardwareSerial : public Stream virtual int available(void); virtual int peek(void); virtual int read(void); - int availableForWrite(void); + virtual int availableForWrite(void); virtual void flush(void); virtual size_t write(uint8_t); inline size_t write(unsigned long n) { return write((uint8_t)n); } -- cgit v1.2.3-18-g5258