Log contents of SPIFFS on bootup.
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
3f09d9adbf
commit
70ddba2cbc
@ -51,7 +51,16 @@ void setup() {
|
|||||||
#ifdef MQTT_ENABLE
|
#ifdef MQTT_ENABLE
|
||||||
mqtt_setup();
|
mqtt_setup();
|
||||||
#endif
|
#endif
|
||||||
SPIFFS.begin();
|
if (!SPIFFS.begin()) {
|
||||||
|
LOGln("Core * Could not open SPIFFS filesystem");
|
||||||
|
} else {
|
||||||
|
LOGln("Core * Files in SPIFFS filesystem:");
|
||||||
|
Dir d = SPIFFS.openDir("/");
|
||||||
|
while(d.next()) {
|
||||||
|
LOGln("Core * %s", d.fileName().c_str());
|
||||||
|
}
|
||||||
|
LOGln("Core * End of SPIFFS file listing.");
|
||||||
|
}
|
||||||
load_settings();
|
load_settings();
|
||||||
LOGln("Core * Setup complete");
|
LOGln("Core * Setup complete");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user