FastLED 3.10.9
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 by the native ESP32 backend when it owns the mount. An optional Arduino provider borrows application-mounted storage; its owner handles formatting. 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 50 of file embedded_fs.cpp.hpp.

50 {
51#ifdef FL_IS_ESP32
52 return platforms::fastled_embedded_fs_provider(format_on_fail);
53#else
54 return platforms::makeEmbeddedFs(format_on_fail);
55#endif
56}

References FL_NO_EXCEPT.