From 9c1be4c5572ba3a50b1ccbb56ec4d5581da0a794 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Mon, 5 Nov 2018 00:32:38 +0100 Subject: [PATCH] ota.cpp: bugfix --- src/ota.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ota.cpp b/src/ota.cpp index 83a06702..4b0d13f3 100644 --- a/src/ota.cpp +++ b/src/ota.cpp @@ -101,7 +101,7 @@ void start_ota_update() { end: switch_LED(LED_OFF); - ESP_LOGI(TAG, "Rebooting to %s firmware", (ret < 0) ? "current" : "new"); + ESP_LOGI(TAG, "Rebooting to %s firmware", (ret == 0) ? "new" : "current"); display(5, "**", ""); // mark line rebooting vTaskDelay(5000 / portTICK_PERIOD_MS); ESP.restart();