mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-31 02:59:10 +03:00
add debug statement
This commit is contained in:
@@ -70,6 +70,10 @@ class FSPersistence {
|
|||||||
|
|
||||||
// failed to open file, return false
|
// failed to open file, return false
|
||||||
if (!settingsFile || !jsonObject.size()) {
|
if (!settingsFile || !jsonObject.size()) {
|
||||||
|
#if defined(EMSESP_DEBUG)
|
||||||
|
Serial.printf("Failed to write file %s", _filePath);
|
||||||
|
Serial.println();
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user