mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Fixed value returned by serializeXxx() when writing to a String
This commit is contained in:
		| @@ -22,9 +22,8 @@ class Writer< ::String, void> { | ||||
|     // CAUTION: Arduino String doesn't have append() | ||||
|     // and old version doesn't have size() either | ||||
|     _str->reserve(_str->length() + n); | ||||
|     while (n > 0) { | ||||
|     for (size_t i = 0; i < n; i++) { | ||||
|       _str->operator+=(static_cast<char>(*s++)); | ||||
|       n--; | ||||
|     } | ||||
|     return n; | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user