diff options
Diffstat (limited to 'cores/arduino/Print.cpp')
-rw-r--r-- | cores/arduino/Print.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index 38de93e..5df5630 100644 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -41,7 +41,7 @@ size_t Print::write(const uint8_t *buffer, size_t size) size_t Print::print(const __FlashStringHelper *ifsh) { - const char *p = reinterpret_cast<const char *>(ifsh); + PGM_P p = reinterpret_cast<PGM_P>(ifsh); size_t n = 0; while (1) { unsigned char c = pgm_read_byte(p++); @@ -53,7 +53,7 @@ size_t Print::print(const __FlashStringHelper *ifsh) size_t Print::print(const String &s) { - return write(reinterpret_cast<const uint8_t*>(s.c_str()), s.length()); + return write(s.c_str(), s.length()); } size_t Print::print(const char str[]) |