diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2011-09-07 18:41:05 -0400 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2011-09-07 18:41:05 -0400 |
commit | 8b13206e655cd9c1123d842cab1fdd0afd6edc8b (patch) | |
tree | 7bc160ae231726989f023ccc6a5fe84d685e4c42 /cores/arduino/Print.h | |
parent | 3c66dc1b8d1de4b93fce7f447901559591976a26 (diff) |
Making Print::write(char *) non-virtual.
http://code.google.com/p/arduino/issues/detail?id=607
Diffstat (limited to 'cores/arduino/Print.h')
-rwxr-xr-x | cores/arduino/Print.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/Print.h b/cores/arduino/Print.h index 8530b03..1af6b72 100755 --- a/cores/arduino/Print.h +++ b/cores/arduino/Print.h @@ -46,7 +46,7 @@ class Print void clearWriteError() { setWriteError(0); } virtual size_t write(uint8_t) = 0; - virtual size_t write(const char *str); + size_t write(const char *str) { return write((const uint8_t *)str, strlen(str)); } virtual size_t write(const uint8_t *buffer, size_t size); size_t print(const __FlashStringHelper *); |