File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
* Fix compatibility with the Zephyr Project (issue #1905 )
8
8
* Allow using PROGMEM outside of Arduino (issue #1903 )
9
+ * Set default for ` ARDUINOJSON_ENABLE_PROGMEM ` to ` 1 ` on AVR
9
10
10
11
v6.21.1 (2023-03-27)
11
12
-------
Original file line number Diff line number Diff line change 1
1
#include < ArduinoJson.h>
2
2
3
+ static_assert (ARDUINOJSON_ENABLE_PROGMEM == 1 , " ARDUINOJSON_ENABLE_PROGMEM" );
4
+
3
5
static_assert (ARDUINOJSON_USE_LONG_LONG == 0 , " ARDUINOJSON_USE_LONG_LONG" );
4
6
5
7
static_assert (ARDUINOJSON_SLOT_OFFSET_SIZE == 1 ,
Original file line number Diff line number Diff line change 130
130
# define ARDUINOJSON_ENABLE_ARDUINO_PRINT 0
131
131
# endif
132
132
133
- // Disable support for PROGMEM
133
+ // Enable PROGMEM support on AVR only
134
134
# ifndef ARDUINOJSON_ENABLE_PROGMEM
135
- # define ARDUINOJSON_ENABLE_PROGMEM 0
135
+ # ifdef __AVR__
136
+ # define ARDUINOJSON_ENABLE_PROGMEM 1
137
+ # else
138
+ # define ARDUINOJSON_ENABLE_PROGMEM 0
139
+ # endif
136
140
# endif
137
141
138
142
#endif // ARDUINO
You can’t perform that action at this time.
0 commit comments