From 73a4318324f67b5dd44fafa0c45a95d97873b337 Mon Sep 17 00:00:00 2001 From: mikee47 Date: Mon, 8 Jan 2024 23:56:39 +0000 Subject: [PATCH] Only esp8266 requires special handling for _F() --- Sming/Wiring/FakePgmSpace.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Sming/Wiring/FakePgmSpace.h b/Sming/Wiring/FakePgmSpace.h index 3c34e8f43a..d8c68604cf 100644 --- a/Sming/Wiring/FakePgmSpace.h +++ b/Sming/Wiring/FakePgmSpace.h @@ -75,9 +75,7 @@ extern "C" { &__pstr__[0]; \ })) -#ifdef ARCH_HOST -#define _F(str) (str) -#else +#ifdef ARCH_ESP8266 /** * @brief Declare and use a flash string inline. * @param str @@ -89,7 +87,8 @@ extern "C" { LOAD_PSTR(buf, __pstr__); \ buf; \ })) - +#else +#define _F(str) (str) #endif /**