diff --git a/src/pitrix.cpp b/src/pitrix.cpp index fd4e1e0..226899b 100644 --- a/src/pitrix.cpp +++ b/src/pitrix.cpp @@ -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"); }