# HG changeset patch # User Michiel Broek # Date 1586196111 -7200 # Node ID 20c14b06f255d5a7f0dbe0480014b89393a3511c # Parent 90a36619b07b35cef5175a7d036fae7f8f6d1a6b Turn off the watchdog timer during OTA update. diff -r 90a36619b07b -r 20c14b06f255 main/updates.c --- 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 (;;) {