ota.cpp: bugfix

This commit is contained in:
Klaus K Wilting 2018-11-05 00:32:38 +01:00
parent d17638ad90
commit 9c1be4c557

View File

@ -101,7 +101,7 @@ void start_ota_update() {
end: end:
switch_LED(LED_OFF); 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 display(5, "**", ""); // mark line rebooting
vTaskDelay(5000 / portTICK_PERIOD_MS); vTaskDelay(5000 / portTICK_PERIOD_MS);
ESP.restart(); ESP.restart();