From c33112c3b455b4eede398986952bea9af9804e1e Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Wed, 19 Sep 2018 11:38:29 +0200 Subject: [PATCH] ota.cpp bugfix --- src/ota.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ota.cpp b/src/ota.cpp index c6e7c69b..dbdcc30d 100644 --- a/src/ota.cpp +++ b/src/ota.cpp @@ -216,7 +216,7 @@ void processOTAUpdate(const String &version) { TAG, "OTA update completed. Rebooting to runmode with new version."); client.stop(); - ESP.restart(); + return; } else { ESP_LOGI(TAG, "Something went wrong! OTA update hasn't been finished " "properly."); @@ -237,7 +237,6 @@ void processOTAUpdate(const String &version) { ESP_LOGI(TAG, "OTA update failed. Rebooting to runmode with current version."); client.stop(); - ESP.restart(); } // helper function to compare two versions. Returns 1 if v2 is