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 (#1371) (#2961)
  • Loading branch information
bxparks authored and me-no-dev committed Jul 17, 2019
1 parent 509d31b commit 56ce580
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 56ce580

Please sign in to comment.