forked from bblanchon/ArduinoJson
Generator: added a test of a full array
This commit is contained in:
@ -16,7 +16,7 @@ public:
|
||||
|
||||
void add(const char* data)
|
||||
{
|
||||
if (itemCount <= N)
|
||||
if (itemCount < N)
|
||||
items[itemCount++] = data;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user