refactor Bambu credentials handling and improve input validation

This commit is contained in:
2025-02-13 09:20:02 +01:00
parent d220479709
commit 3e8e19e8dc
4 changed files with 30 additions and 14 deletions

View File

@ -7,12 +7,13 @@ bool saveJsonValue(const char* filename, const JsonDocument& doc) {
Serial.println(filename);
return false;
}
return true;
if (serializeJson(doc, file) == 0) {
Serial.println("Fehler beim Serialisieren von JSON.");
file.close();
return false;
}
file.close();
return true;
}