MCPcopy Create free account
hub / github.com/BruceDevices/firmware / begin_storage

Function begin_storage

src/main.cpp:163–168  ·  view source on GitHub ↗

** Function: begin_storage ** Config LittleFS and SD storage *********************************************************************/

Source from the content-addressed store, hash-verified

161 ** Config LittleFS and SD storage
162 *********************************************************************/
163void begin_storage() {
164 if (!LittleFS.begin(true)) { LittleFS.format(), LittleFS.begin(); }
165 bool checkFS = setupSdCard();
166 bruceConfig.fromFile(checkFS);
167 bruceConfigPins.fromFile(checkFS);
168}
169
170/*********************************************************************
171 ** Function: _setup_gpio()

Callers 1

setupFunction · 0.85

Calls 3

setupSdCardFunction · 0.85
beginMethod · 0.45
fromFileMethod · 0.45

Tested by

no test coverage detected