File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ class StringSumHelper;
35
35
// an abstract class used as a means to proide a unique pointer type
36
36
// but really has no body
37
37
class __FlashStringHelper ;
38
- #define F (string_literal ) (reinterpret_cast <const __FlashStringHelper *>(PSTR(string_literal)))
38
+ #define FPSTR (pstr_pointer ) (reinterpret_cast <const __FlashStringHelper *>(pstr_pointer))
39
+ #define F (string_literal ) (FPSTR(PSTR(string_literal)))
39
40
40
41
// The string class
41
42
class String {
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ typedef unsigned long prog_uint32_t;
32
32
#define PROGMEM
33
33
#define PGM_P const char *
34
34
#define PGM_VOID_P const void *
35
- #define FPSTR (p ) ((const char *)(p))
36
35
#define PSTR (s ) (s)
37
36
#define _SFR_BYTE (n ) (n)
38
37
You can’t perform that action at this time.
0 commit comments