Skip to content

Commit

Permalink
Undo the redefinition of FPSTR from 8266 merge (#2726)
Browse files Browse the repository at this point in the history
Fixes Arduino.h redefinition errors.
  • Loading branch information
earlephilhower authored and me-no-dev committed Apr 30, 2019
1 parent 697d4ff commit d13de28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cores/esp32/WString.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ class StringSumHelper;
// an abstract class used as a means to proide a unique pointer type
// but really has no body
class __FlashStringHelper;
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
#define F(string_literal) (FPSTR(PSTR(string_literal)))
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))

// The string class
class String {
Expand Down

0 comments on commit d13de28

Please sign in to comment.