ota.cpp: bugfix
This commit is contained in:
parent
d17638ad90
commit
9c1be4c557
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user