Formated code with clang-format

This commit is contained in:
Benoit Blanchon
2014-10-23 19:54:00 +02:00
parent 888fdc1d54
commit 9175046f35
52 changed files with 2002 additions and 2638 deletions

View File

@ -7,11 +7,11 @@
using namespace ArduinoJson::Internals;
size_t StringBuilder::write(uint8_t c)
{
if (length >= capacity) return 0;
size_t StringBuilder::write(uint8_t c) {
if (length >= capacity)
return 0;
buffer[length++] = c;
buffer[length] = 0;
return 1;
buffer[length++] = c;
buffer[length] = 0;
return 1;
}