Fix write with string

pull/1182/head^2
cschwinne 2020-09-09 10:21:56 +02:00
rodzic 649ebb8a4e
commit 6ef4582ebd
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -166,7 +166,7 @@ bool appendObjectToFile(const char* file, const char* key, JsonDocument* content
Serial.print("clen"); Serial.println(contentLen);
if (bufferedFindSpace(contentLen + strlen(key) + 1, f)) {
Serial.println("space");
if (f.position() > 2) f.write(","); //add comma if not first object
if (f.position() > 2) f.write(','); //add comma if not first object
f.print(key);
serializeJson(*content, f);
return true;