forked from bblanchon/ArduinoJson
Changed naming convention to avoid shadowing (issue #25)
This commit is contained in:
@ -9,9 +9,9 @@ using namespace ArduinoJson::Internals;
|
||||
|
||||
size_t StringBuilder::write(uint8_t c)
|
||||
{
|
||||
if (length >= capacity) return 0;
|
||||
if (_length >= _capacity) return 0;
|
||||
|
||||
buffer[length++] = c;
|
||||
buffer[length] = 0;
|
||||
_buffer[_length++] = c;
|
||||
_buffer[_length] = 0;
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user