Assume PROGMEM is available as soon as ARDUINO is defined (#1693)

This commit is contained in:
Benoit Blanchon committed 2021-12-31 11:00:50 +01:00
1 parent 055304bf01
commit 67fc2d9897
10 files changed
+17 -24

No files matched your search

@@ -14,8 +14,6 @@
#include <ArduinoJson.h>
void setup() {
#ifdef PROGMEM // <- check that Flash strings are supported
DynamicJsonDocument doc(1024);
// You can use a Flash String as your JSON input.
@@ -46,12 +44,6 @@ void setup() {
if (obj["sensor"] == F("gps")) {
// ...
}
#else
#warning PROGMEM is not supported on this platform
#endif
}
void loop() {