Log contents of SPIFFS on bootup.
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Fabian Schlenz 2020-04-29 20:28:10 +02:00
parent 3f09d9adbf
commit 70ddba2cbc
1 changed files with 10 additions and 1 deletions

View File

@ -51,7 +51,16 @@ void setup() {
#ifdef MQTT_ENABLE
mqtt_setup();
#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();
LOGln("Core * Setup complete");
}