We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
-#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
+#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
39
+#define F(string_literal) (FPSTR(PSTR(string_literal)))
40
41
// The string class
42
class String {
cores/esp32/pgmspace.h
@@ -32,7 +32,6 @@ typedef unsigned long prog_uint32_t;
32
#define PROGMEM
33
#define PGM_P const char *
34
#define PGM_VOID_P const void *
-#define FPSTR(p) ((const char *)(p))
#define PSTR(s) (s)
#define _SFR_BYTE(n) (n)
0 commit comments