Serialize floats in objects

This commit is contained in:
Benoit Blanchon
2014-09-30 17:32:45 +02:00
parent c1ab55f9d9
commit f251563af1
4 changed files with 15 additions and 6 deletions

View File

@ -124,6 +124,9 @@ size_t JsonObject::printTo(Print& p) const
break;
}
if (childValue->type >= JSON_DOUBLE_0_DECIMALS)
n += p.print(childValue->content.asDouble, childValue->type - JSON_DOUBLE_0_DECIMALS);
if (child->next)
{
n += p.write(',');