Mon, 06 Apr 2020 20:01:51 +0200
Turn off the watchdog timer during OTA update.
main/updates.c | file | annotate | diff | comparison | revisions |
--- a/main/updates.c Mon Apr 06 10:42:08 2020 +0200 +++ b/main/updates.c Mon Apr 06 20:01:51 2020 +0200 @@ -14,6 +14,7 @@ extern u8g2_t u8g2; ///< Structure for the display. extern int Main_Loop1; +extern uint32_t AlarmTimer; static void http_cleanup(esp_http_client_handle_t client) @@ -36,6 +37,7 @@ ESP_LOGI(TAG, "Update begin"); update_running = 1; + AlarmTimer = 0; screen_updating("Stop meten", NULL); for (;;) {