Skip to content

Commit 1bcab7f

Browse files
committed
Fix wrong ota_app_validate argument
1 parent 85114be commit 1bcab7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void app_main() {
173173
// Start the http server
174174
esp_err_t err = srv_http_start(SPIFFS_BASE_PATH, ws_rx_bin_callback);
175175
// Validate or rollback ESP32 firmware after an OTA update
176-
ota_app_validate(err);
176+
ota_app_validate(err == ESP_OK);
177177
} else if (event_bits & WIFI_STA_CANT_CONNECT_EVENT) {
178178
ESP_LOGI(TAG, "Unable to connect as STA, switching to softAP mode");
179179
srv_http_stop();

0 commit comments

Comments
 (0)