aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/HardwareSerial.h
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-01-02 11:17:30 +0000
committerCristian Maglie <c.maglie@bug.st>2017-05-16 14:52:47 +0200
commit716fba8dd98f54dcd816fa69cafdcb681b54ab11 (patch)
treeab2a17a984cab2f780500ee1befef15ebd245eca /cores/arduino/HardwareSerial.h
parent2a4e2b968f4eab9cf2b2b8e72a8583ac41328af9 (diff)
Add Print::availableForWrite
If available() is in the base Stream class, then availableForWrite() should be in the base Print class
Diffstat (limited to 'cores/arduino/HardwareSerial.h')
-rw-r--r--cores/arduino/HardwareSerial.h2
1 files changed, 1 insertions, 1 deletions
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); }