mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
added debug when writing FS
This commit is contained in:
@@ -63,10 +63,12 @@ class FSPersistence {
|
||||
return false;
|
||||
}
|
||||
|
||||
// debug added by Proddy
|
||||
// Serial.printf("Write File: %s: ", _filePath);
|
||||
// serializeJson(jsonDocument, Serial);
|
||||
// Serial.println();
|
||||
// debug added by Proddy
|
||||
#if defined(EMSESP_DEBUG)
|
||||
Serial.printf("Write File: %s: ", _filePath);
|
||||
serializeJson(jsonDocument, Serial);
|
||||
Serial.println();
|
||||
#endif
|
||||
|
||||
// serialize the data to the file
|
||||
serializeJson(jsonDocument, settingsFile);
|
||||
|
||||
Reference in New Issue
Block a user