forked from bblanchon/ArduinoJson
Changed JsonArray tests to show the issue
This commit is contained in:
1 parent
df52dceaa1
commit
bc86ae800a
4 files changed
+25
-19
No files matched your search
@@ -20,12 +20,17 @@ namespace ArduinoJson
|
||||
|
||||
}
|
||||
|
||||
void add(const Printable& nestedObject)
|
||||
{
|
||||
if (count < capacity)
|
||||
items[count++] = nestedObject;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void add(T value)
|
||||
{
|
||||
if (count >= capacity) return;
|
||||
|
||||
items[count++] = value;
|
||||
if (count < capacity)
|
||||
items[count++] = value;
|
||||
}
|
||||
|
||||
template<int DIGITS>
|
||||
|
||||
Reference in new issue
Block a user