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/Printable.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/Printable.h')
-rw-r--r-- | cores/arduino/Printable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/Printable.h b/cores/arduino/Printable.h index d332aad..6814ee4 100644 --- a/cores/arduino/Printable.h +++ b/cores/arduino/Printable.h @@ -30,7 +30,7 @@ class Print; class Printable { public: - virtual void printTo(Print& p) const = 0; + virtual long printTo(Print& p) const = 0; }; #endif |