We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85114be commit 1bcab7fCopy full SHA for 1bcab7f
main/main.c
@@ -173,7 +173,7 @@ void app_main() {
173
// Start the http server
174
esp_err_t err = srv_http_start(SPIFFS_BASE_PATH, ws_rx_bin_callback);
175
// Validate or rollback ESP32 firmware after an OTA update
176
- ota_app_validate(err);
+ ota_app_validate(err == ESP_OK);
177
} else if (event_bits & WIFI_STA_CANT_CONNECT_EVENT) {
178
ESP_LOGI(TAG, "Unable to connect as STA, switching to softAP mode");
179
srv_http_stop();
0 commit comments