From 2a257c80144e9d0010dec3047b0db9f54bbc834f Mon Sep 17 00:00:00 2001 From: Nicholas Humfrey Date: Tue, 7 Sep 2021 23:56:45 +0100 Subject: [PATCH] Added FPSTR() macro to WString.h --- cores/arduino/WString.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index 2cf4cd747..12b43de4c 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -35,7 +35,8 @@ // -std=c++0x class __FlashStringHelper; -#define F(string_literal) (reinterpret_cast(PSTR(string_literal))) +#define FPSTR(pstr_pointer) (reinterpret_cast(pstr_pointer)) +#define F(string_literal) (FPSTR(PSTR(string_literal))) // An inherited class for holding the result of a concatenation. These // result objects are assumed to be writable by subsequent concatenations.