mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Made PROGMEM available on more platforms (issue #381)
This commit is contained in:
		| @@ -1,6 +1,11 @@ | ||||
| ArduinoJson: change log | ||||
| ======================= | ||||
|  | ||||
| HEAD | ||||
| ---- | ||||
|  | ||||
| * Made PROGMEM available on more platforms (issue #381) | ||||
|  | ||||
| v5.7.1 | ||||
| ------ | ||||
|  | ||||
|   | ||||
| @@ -15,7 +15,7 @@ | ||||
| // efficient in term of code size, speed and memory usage. | ||||
|  | ||||
| void setup() { | ||||
| #if ARDUINO_ARCH_AVR | ||||
| #ifdef PROGMEM | ||||
|   DynamicJsonBuffer jsonBuffer; | ||||
|  | ||||
|   // You can use a Flash String as your JSON input. | ||||
|   | ||||
| @@ -29,7 +29,7 @@ | ||||
|  | ||||
| // On AVR archiecture, we can use PROGMEM | ||||
| #ifndef ARDUINOJSON_ENABLE_PROGMEM | ||||
| #ifdef ARDUINO_ARCH_AVR | ||||
| #ifdef PROGMEM | ||||
| #define ARDUINOJSON_ENABLE_PROGMEM 1 | ||||
| #else | ||||
| #define ARDUINOJSON_ENABLE_PROGMEM 0 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user