BugFix FlashStringHelper Macros (#8147)

Revert to previous definition of `FPSTR` and `F` macros.
This commit is contained in:
David McCurley 2023-05-03 11:49:04 -05:00 committed by GitHub
parent 8f4f21c75a
commit 5c92a0231b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,8 +34,8 @@
// A pure abstract class forward used as a means to proide a unique pointer type // A pure abstract class forward used as a means to proide a unique pointer type
// but really is never defined. // but really is never defined.
class __FlashStringHelper; class __FlashStringHelper;
#define FPSTR(pstr_pointer) (pstr_pointer) #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
#define F(string_literal) (string_literal) #define F(string_literal) (FPSTR(PSTR(string_literal)))
// An inherited class for holding the result of a concatenation. These // An inherited class for holding the result of a concatenation. These
// result objects are assumed to be writable by subsequent concatenations. // result objects are assumed to be writable by subsequent concatenations.