mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 04:22:25 +00:00
manual
This commit is contained in:
@@ -68,11 +68,12 @@ Main Function
|
||||
|
||||
// Initialize NVS
|
||||
esp_err_t ret = nvs_flash_init();
|
||||
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||
if (ret == ESP_ERR_NVS_NO_FREE_PAGES ||
|
||||
ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||
ESP_ERROR_CHECK( nvs_flash_erase() );
|
||||
ret = nvs_flash_init();
|
||||
}
|
||||
|
||||
|
||||
ESP_ERROR_CHECK( ret );
|
||||
wifi_init();
|
||||
ESP_ERROR_CHECK(esp_now_init());
|
||||
|
Reference in New Issue
Block a user