Fix incorrect definition of FPSTR() and move from pgmspace.h to WString.h (#1371) (#2961)

This commit is contained in:
Brian Park 2019-07-17 00:16:47 -07:00 committed by Me No Dev
parent 509d31ba51
commit 56ce580b0e
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

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