forked from bblanchon/ArduinoJson
Reduced the size of JsonHashTableBase::printTo() by 12 bytes
This commit is contained in:
@ -9,18 +9,18 @@ size_t JsonHashTableBase::printTo(Print& p) const
|
||||
n += p.write('{');
|
||||
|
||||
KeyValuePair* current = items;
|
||||
for (int i = 0; i < count; i++)
|
||||
for (int i = count; i > 0; i--)
|
||||
{
|
||||
if (i > 0)
|
||||
{
|
||||
n += p.write(',');
|
||||
}
|
||||
|
||||
n += current->key.printTo(p);
|
||||
n += p.write(':');
|
||||
n += current->value.printTo(p);
|
||||
|
||||
current++;
|
||||
|
||||
if (i > 1)
|
||||
{
|
||||
n += p.write(',');
|
||||
}
|
||||
}
|
||||
|
||||
n += p.write('}');
|
||||
|
Reference in New Issue
Block a user