diff --git a/wled00/file.cpp b/wled00/file.cpp index dcc2d57c4..5a169d645 100644 --- a/wled00/file.cpp +++ b/wled00/file.cpp @@ -188,6 +188,7 @@ static bool appendObjectToFile(const char* key, const JsonDocument* content, uin if (f.size() < 3) { char init[10]; strcpy_P(init, PSTR("{\"0\":{}}")); + f.seek(0, SeekSet); // rewind to ensure we overwrite from the start, instead of appending f.print(init); }