aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/HardwareSerial.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2011-08-23 19:12:03 -0400
committerDavid A. Mellis <d.mellis@arduino.cc>2011-08-23 19:12:03 -0400
commitf282cbaf968f7142ef5abb68a92e970c3d5eea35 (patch)
treeacade7dcd31f50c66ca331775fb1cdc2b392f971 /cores/arduino/HardwareSerial.h
parentf5a15cb62f7257bf26cdedf30ce13f8cff802f79 (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.h2
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
};