diff --git a/CHANGELOG.md b/CHANGELOG.md index d313fc12..c9f21ba1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ ArduinoJson: change log ======================= +HEAD +---- + +* Made PROGMEM available on more platforms (issue #381) + v5.7.1 ------ diff --git a/examples/ProgmemExample/ProgmemExample.ino b/examples/ProgmemExample/ProgmemExample.ino index 45bc3d1e..a427e3e6 100644 --- a/examples/ProgmemExample/ProgmemExample.ino +++ b/examples/ProgmemExample/ProgmemExample.ino @@ -15,7 +15,7 @@ // efficient in term of code size, speed and memory usage. void setup() { -#if ARDUINO_ARCH_AVR +#ifdef PROGMEM DynamicJsonBuffer jsonBuffer; // You can use a Flash String as your JSON input. diff --git a/include/ArduinoJson/Configuration.hpp b/include/ArduinoJson/Configuration.hpp index 93edc187..315a2c1b 100644 --- a/include/ArduinoJson/Configuration.hpp +++ b/include/ArduinoJson/Configuration.hpp @@ -29,7 +29,7 @@ // On AVR archiecture, we can use PROGMEM #ifndef ARDUINOJSON_ENABLE_PROGMEM -#ifdef ARDUINO_ARCH_AVR +#ifdef PROGMEM #define ARDUINOJSON_ENABLE_PROGMEM 1 #else #define ARDUINOJSON_ENABLE_PROGMEM 0