1 parent 509d31b commit 56ce580Copy full SHA for 56ce580
cores/esp32/WString.h
@@ -35,7 +35,8 @@ class StringSumHelper;
35
// an abstract class used as a means to proide a unique pointer type
36
// but really has no body
37
class__FlashStringHelper;
38
-#defineF(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
+#defineFPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
39
+#defineF(string_literal) (FPSTR(PSTR(string_literal)))
40
41
// The string class
42
classString {
cores/esp32/pgmspace.h
@@ -32,7 +32,6 @@ typedef unsigned long prog_uint32_t;
32
#definePROGMEM
33
#definePGM_P const char *
34
#definePGM_VOID_P const void *
-#defineFPSTR(p) ((const char *)(p))
#definePSTR(s) (s)
#define_SFR_BYTE(n) (n)
0 commit comments