init filesystem
#include "app.h"
+#include "FS.h"
+
#include "devices/analog_input.h"
#include "devices/system_info.h"
#include "net/ota.h"
SensESPApp::SensESPApp() {
// initialize filesystem
- setup_spiffs_storage();
+ if (!SPIFFS.begin()) {
+ Serial.println("FATAL: Filesystem initialization failed.");
+ ESP.restart();
+ }
// initialize networking
networking = new Networking("/system/networking", "");
