diff --git a/api/Print.cpp b/api/Print.cpp index 8c3e1930..efdd6366 100644 --- a/api/Print.cpp +++ b/api/Print.cpp @@ -41,7 +41,11 @@ size_t Print::write(const uint8_t *buffer, size_t size) size_t Print::print(const __FlashStringHelper *ifsh) { #if defined(__AVR__) + #if defined(__clang__) + PGM_P p = (PGM_P)(ifsh); + #else PGM_P p = reinterpret_cast(ifsh); + #endif size_t n = 0; while (1) { unsigned char c = pgm_read_byte(p++);