Use reinterpret_cast to cast __FlashStringHelper to const char*

This commit is contained in:
Kristian Lauszus 2013-12-27 20:01:03 +01:00
parent 660c7d86fd
commit 5d361f5f47
1 changed files with 1 additions and 1 deletions

View File

@ -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++);