Skip to content

Commit 00512ff

Browse files
committed
Added FPSTR() macro to WString.h
1 parent 24e6edd commit 00512ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/arduino/WString.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
// -std=c++0x
3636

3737
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)))
3940

4041
// An inherited class for holding the result of a concatenation. These
4142
// result objects are assumed to be writable by subsequent concatenations.

0 commit comments

Comments
 (0)