Skip to content

Commit

Permalink
Only esp8266 requires special handling for _F() (#2699)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 authored Jan 9, 2024
1 parent 22f8c1a commit d87ee6c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Sming/Wiring/FakePgmSpace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -89,7 +87,8 @@ extern "C" {
LOAD_PSTR(buf, __pstr__); \
buf; \
}))

#else
#define _F(str) (str)
#endif

/**
Expand Down

0 comments on commit d87ee6c

Please sign in to comment.