Skip to content

Commit

Permalink
Fix incorrect definition of FPSTR() and move from pgmspace.h to WStri…
Browse files Browse the repository at this point in the history
…ng.h (espressif#1371)
  • Loading branch information
bxparks committed Jul 4, 2019
1 parent 7d78247 commit 14427e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cores/esp32/WString.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class StringSumHelper;
// an abstract class used as a means to proide a unique pointer type
// but really has no body
class __FlashStringHelper;
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
#define F(string_literal) (FPSTR(PSTR(string_literal)))

// The string class
class String {
Expand Down
1 change: 0 additions & 1 deletion cores/esp32/pgmspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ typedef unsigned long prog_uint32_t;
#define PROGMEM
#define PGM_P const char *
#define PGM_VOID_P const void *
#define FPSTR(p) ((const char *)(p))
#define PSTR(s) (s)
#define _SFR_BYTE(n) (n)

Expand Down

0 comments on commit 14427e7

Please sign in to comment.