mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Fixed error "no matching function for pgm_read<double>()" on AVR
This commit is contained in:
		| @@ -15,7 +15,11 @@ typename enable_if<is_pointer<T>::value, T>::type pgm_read(const void* p) { | ||||
| } | ||||
|  | ||||
| template <typename T> | ||||
| typename enable_if<is_same<T, float>::value, T>::type pgm_read(const void* p) { | ||||
| typename enable_if<is_floating_point<T>::value && | ||||
|                        sizeof(T) == sizeof(float),  // on AVR sizeof(double) == | ||||
|                                                     // sizeof(float) | ||||
|                    T>::type | ||||
| pgm_read(const void* p) { | ||||
|   return pgm_read_float(p); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user