diff options
| author | Kristian Lauszus <lauszus@gmail.com> | 2013-12-27 20:01:03 +0100 | 
|---|---|---|
| committer | Kristian Lauszus <lauszus@gmail.com> | 2013-12-27 20:01:03 +0100 | 
| commit | ad9f78d727869e321e7d8111a48899399b8e1e87 (patch) | |
| tree | d6c701a28235be9dba9f1158a26e515526ec7428 | |
| parent | dce9146485869ed6008dce30777ffd08c1f92311 (diff) | |
Use reinterpret_cast to cast __FlashStringHelper to const char*
| -rw-r--r-- | cores/arduino/Print.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index f6e499b..38de93e 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 PROGMEM *p = (const char PROGMEM *)ifsh; +  const char *p = reinterpret_cast<const char *>(ifsh);    size_t n = 0;    while (1) {      unsigned char c = pgm_read_byte(p++); | 
