mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
Fixed PROGMEM causing an exception on ESP8266 (issue #383)
This commit is contained in:
@@ -5,6 +5,7 @@ HEAD
|
|||||||
----
|
----
|
||||||
|
|
||||||
* Made PROGMEM available on more platforms (issue #381)
|
* Made PROGMEM available on more platforms (issue #381)
|
||||||
|
* Fixed PROGMEM causing an exception on ESP8266 (issue #383)
|
||||||
|
|
||||||
v5.7.1
|
v5.7.1
|
||||||
------
|
------
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ struct StringFuncs<std::string> : StdStringFuncs<std::string> {};
|
|||||||
template <>
|
template <>
|
||||||
struct StringFuncs<const __FlashStringHelper*> {
|
struct StringFuncs<const __FlashStringHelper*> {
|
||||||
static bool equals(const __FlashStringHelper* str, const char* expected) {
|
static bool equals(const __FlashStringHelper* str, const char* expected) {
|
||||||
return strcmp_P((PGM_P)str, expected) == 0;
|
return strcmp_P(expected, (PGM_P)str) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Buffer>
|
template <typename Buffer>
|
||||||
|
|||||||
Reference in New Issue
Block a user