MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / initNvs

Function initNvs

Tactility/Source/TactilityEsp.cpp:16–25  ·  view source on GitHub ↗

Initialize NVS

Source from the content-addressed store, hash-verified

14
15// Initialize NVS
16static void initNvs() {
17 LOGGER.info("Init NVS");
18 esp_err_t ret = nvs_flash_init();
19 if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
20 LOGGER.info("NVS erasing");
21 ESP_ERROR_CHECK(nvs_flash_erase());
22 ret = nvs_flash_init();
23 }
24 ESP_ERROR_CHECK(ret);
25}
26
27static void initNetwork() {
28 LOGGER.info("Init network");

Callers 1

initEspFunction · 0.85

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected