mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Assume PROGMEM is available as soon as ARDUINO is defined (#1693)
				
					
				
			This commit is contained in:
		| @@ -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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user