FastLED 3.10.6
Loading...
Searching...
No Matches

◆ getEmbeddedFs()

FsImplPtr fl::getEmbeddedFs ( bool format_on_fail = false)

Filesystem backed by the microcontroller's own flash, or null where the platform has none.

Parameters
format_on_failFormat and mount when the storage is absent or corrupt. Off by default: reformatting discards whatever was there, which is rarely wanted unprompted.

Honored on ESP32, whose core takes the flag directly. ESP8266 exposes a no-argument begin() with no such hook and ignores it — an unformatted filesystem there simply fails to mount, which is the safe outcome either way.

Definition at line 26 of file embedded_fs.cpp.hpp.

26 {
27 return fl::platforms::makeEmbeddedFs(format_on_fail);
28}

References FL_NO_EXCEPT.