We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ARDUINOJSON_ENABLE_PROGMEM
1
1 parent acfbf26 commit 03139a0Copy full SHA for 03139a0
extras/conf_test/avr.cpp
@@ -1,5 +1,7 @@
#include <ArduinoJson.h>
2
3
+static_assert(ARDUINOJSON_ENABLE_PROGMEM == 1, "ARDUINOJSON_ENABLE_PROGMEM");
4
+
5
static_assert(ARDUINOJSON_USE_LONG_LONG == 0, "ARDUINOJSON_USE_LONG_LONG");
6
7
static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 1,
src/ArduinoJson/Configuration.hpp
@@ -130,9 +130,13 @@
130
# define ARDUINOJSON_ENABLE_ARDUINO_PRINT 0
131
# endif
132
133
-// Disable support for PROGMEM
+// Enable PROGMEM support on AVR only
134
# ifndef ARDUINOJSON_ENABLE_PROGMEM
135
-# define ARDUINOJSON_ENABLE_PROGMEM 0
+# ifdef __AVR__
136
+# define ARDUINOJSON_ENABLE_PROGMEM 1
137
+# else
138
+# define ARDUINOJSON_ENABLE_PROGMEM 0
139
+# endif
140
141
142
#endif // ARDUINO
0 commit comments