SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
filesystem.cpp
Go to the documentation of this file.
1#include "SPIFFS.h"
2
3#include "filesystem.h"
4#include "sensesp.h"
5
6namespace sensesp {
7
9 if (!SPIFFS.begin(true)) {
10 debugE("FATAL: Filesystem initialization failed.");
11 ESP.restart();
12 }
13}
14
16 debugI("Formatting filesystem");
17 SPIFFS.format();
18}
19
20} // namespace sensesp
virtual void reset() override
Construct a new transform based on a single function.
Automatic calling of the reset() method when the device needs to be reset.
Definition resettable.h:20
#define debugI(fmt,...)
Definition local_debug.h:48
#define debugE(fmt,...)
Definition local_debug.h:50