diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2011-08-23 19:12:03 -0400 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2011-08-23 19:12:03 -0400 |
commit | f282cbaf968f7142ef5abb68a92e970c3d5eea35 (patch) | |
tree | acade7dcd31f50c66ca331775fb1cdc2b392f971 /cores/arduino/HardwareSerial.h | |
parent | f5a15cb62f7257bf26cdedf30ce13f8cff802f79 (diff) |
write(), print(), and println() now return number of bytes written.
The type is long, and negative values indicate errors. Needs more testing.
http://code.google.com/p/arduino/issues/detail?id=551
Diffstat (limited to 'cores/arduino/HardwareSerial.h')
-rw-r--r-- | cores/arduino/HardwareSerial.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/HardwareSerial.h b/cores/arduino/HardwareSerial.h index eefdcbe..4af8c59 100644 --- a/cores/arduino/HardwareSerial.h +++ b/cores/arduino/HardwareSerial.h @@ -55,7 +55,7 @@ class HardwareSerial : public Stream virtual int peek(void); virtual int read(void); virtual void flush(void); - virtual void write(uint8_t); + virtual long write(uint8_t); using Print::write; // pull in write(str) and write(buf, size) from Print }; |