mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Change the default of ARDUINOJSON_USE_DOUBLE to 1
				
					
				
			This commit is contained in:
		| @@ -6,6 +6,7 @@ HEAD | ||||
|  | ||||
| * Remove `ARDUINOJSON_EMBEDDED_MODE` and assume we run on an embedded platform.   | ||||
|   Dependent settings (like `ARDUINOJSON_DEFAULT_NESTING_LIMIT`) must be set individually. | ||||
| * Change the default of `ARDUINOJSON_USE_DOUBLE` to `1` | ||||
|  | ||||
| v6.18.5 (2021-09-28) | ||||
| ------- | ||||
|   | ||||
| @@ -7,7 +7,7 @@ static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 1, | ||||
|  | ||||
| static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_DOUBLE == 0, "ARDUINOJSON_USE_DOUBLE"); | ||||
| static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE"); | ||||
|  | ||||
| static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 8, | ||||
|               "sizeof(VariantSlot)"); | ||||
|   | ||||
| @@ -7,7 +7,7 @@ static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 2, | ||||
|  | ||||
| static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_DOUBLE == 0, "ARDUINOJSON_USE_DOUBLE"); | ||||
| static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE"); | ||||
|  | ||||
| static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 16, | ||||
|               "sizeof(VariantSlot)"); | ||||
|   | ||||
| @@ -78,7 +78,7 @@ | ||||
|  | ||||
| // Store floating-point values with float (0) or double (1) | ||||
| #ifndef ARDUINOJSON_USE_DOUBLE | ||||
| #  define ARDUINOJSON_USE_DOUBLE 0 | ||||
| #  define ARDUINOJSON_USE_DOUBLE 1 | ||||
| #endif | ||||
|  | ||||
| // Store integral values with long (0) or long long (1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user