forked from bblanchon/ArduinoJson
Changed the default value of ARDUINOJSON_ENABLE_PROGMEM (fixes #1433)
It now checks that the pgm_read_XXX macros are defined before enabling PROGMEM.
This commit is contained in:
@ -5,6 +5,8 @@ HEAD
|
|||||||
----
|
----
|
||||||
|
|
||||||
* Fixed invalid conversion error in `operator|(JsonVariant, char*)` (issue #1432)
|
* Fixed invalid conversion error in `operator|(JsonVariant, char*)` (issue #1432)
|
||||||
|
* Changed the default value of `ARDUINOJSON_ENABLE_PROGMEM` (issue #1433).
|
||||||
|
It now checks that the `pgm_read_XXX` macros are defined before enabling `PROGMEM`.
|
||||||
|
|
||||||
v6.17.1 (2020-11-07)
|
v6.17.1 (2020-11-07)
|
||||||
-------
|
-------
|
||||||
|
@ -172,7 +172,8 @@
|
|||||||
#endif // ARDUINO
|
#endif // ARDUINO
|
||||||
|
|
||||||
#ifndef ARDUINOJSON_ENABLE_PROGMEM
|
#ifndef ARDUINOJSON_ENABLE_PROGMEM
|
||||||
#ifdef PROGMEM
|
#if defined(PROGMEM) && defined(pgm_read_byte) && defined(pgm_read_dword) && \
|
||||||
|
defined(pgm_read_ptr) && defined(pgm_read_float)
|
||||||
#define ARDUINOJSON_ENABLE_PROGMEM 1
|
#define ARDUINOJSON_ENABLE_PROGMEM 1
|
||||||
#else
|
#else
|
||||||
#define ARDUINOJSON_ENABLE_PROGMEM 0
|
#define ARDUINOJSON_ENABLE_PROGMEM 0
|
||||||
|
Reference in New Issue
Block a user