mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 20:42:24 +02:00
Set default for ARDUINOJSON_ENABLE_PROGMEM
to 1
on AVR
Ported from 082ae69e86
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
|
|
||||||
|
static_assert(ARDUINOJSON_ENABLE_PROGMEM == 1, "ARDUINOJSON_ENABLE_PROGMEM");
|
||||||
|
|
||||||
static_assert(ARDUINOJSON_USE_LONG_LONG == 0, "ARDUINOJSON_USE_LONG_LONG");
|
static_assert(ARDUINOJSON_USE_LONG_LONG == 0, "ARDUINOJSON_USE_LONG_LONG");
|
||||||
|
|
||||||
static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 1,
|
static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 1,
|
||||||
|
@ -130,9 +130,13 @@
|
|||||||
# define ARDUINOJSON_ENABLE_ARDUINO_PRINT 0
|
# define ARDUINOJSON_ENABLE_ARDUINO_PRINT 0
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
// Disable support for PROGMEM
|
// Enable PROGMEM support on AVR only
|
||||||
# ifndef ARDUINOJSON_ENABLE_PROGMEM
|
# ifndef ARDUINOJSON_ENABLE_PROGMEM
|
||||||
# define ARDUINOJSON_ENABLE_PROGMEM 0
|
# ifdef __AVR__
|
||||||
|
# define ARDUINOJSON_ENABLE_PROGMEM 1
|
||||||
|
# else
|
||||||
|
# define ARDUINOJSON_ENABLE_PROGMEM 0
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#endif // ARDUINO
|
#endif // ARDUINO
|
||||||
|
Reference in New Issue
Block a user