mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Adding overloads so Serial.write(0) works.
http://code.google.com/p/arduino/issues/detail?id=1006
This commit is contained in:
parent
f9f1d3af3c
commit
222d51e383
@ -57,6 +57,10 @@ class HardwareSerial : public Stream
|
||||
virtual int read(void);
|
||||
virtual void flush(void);
|
||||
virtual size_t write(uint8_t);
|
||||
inline size_t write(unsigned long n) { return write((uint8_t)n); }
|
||||
inline size_t write(long n) { return write((uint8_t)n); }
|
||||
inline size_t write(unsigned int n) { return write((uint8_t)n); }
|
||||
inline size_t write(int n) { return write((uint8_t)n); }
|
||||
using Print::write; // pull in write(str) and write(buf, size) from Print
|
||||
operator bool();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user