** Function: begin_storage ** Config LittleFS and SD storage *********************************************************************/
| 161 | ** Config LittleFS and SD storage |
| 162 | *********************************************************************/ |
| 163 | void 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() |
no test coverage detected