Update to 2.0.0
This commit is contained in:
@@ -17,8 +17,7 @@ extern "C" void app_main(void)
|
||||
|
||||
// Initialize NVS flash for WiFi configuration
|
||||
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_LOGW(TAG, "Erasing NVS flash to fix corruption");
|
||||
ESP_ERROR_CHECK(nvs_flash_erase());
|
||||
ret = nvs_flash_init();
|
||||
@@ -26,7 +25,7 @@ extern "C" void app_main(void)
|
||||
ESP_ERROR_CHECK(ret);
|
||||
|
||||
// Launch the application
|
||||
auto &app = Application::GetInstance();
|
||||
auto& app = Application::GetInstance();
|
||||
app.Start();
|
||||
app.MainEventLoop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user