From 4c65de256177a9de4b5e69a8459b1d603b028f84 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 27 Oct 2021 16:22:50 +0200 Subject: [PATCH] Fix OTA watchdog caused by TWDTLoop() --- tasmota/tasmota.ino | 4 ++-- tasmota/xdrv_01_webserver.ino | 2 +- tasmota/xdrv_52_3_berry_tasmota.ino | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index 93ca203e3..b4e13dc30 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -318,7 +318,7 @@ void setup(void) { SettingsDelta(); #ifdef ESP32 - TWDTInit(); // Start Task WDT for ESP32 - FreeRTOS only +// TWDTInit(); // Start Task WDT for ESP32 - FreeRTOS only #endif OsWatchInit(); @@ -513,7 +513,7 @@ void Scheduler(void) { #endif // ESP8266 #ifdef ESP32 - TWDTLoop(); +// TWDTLoop(); #endif OsWatchLoop(); ButtonLoop(); diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 9b0ff1699..c64d5eb5d 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -2795,7 +2795,7 @@ void HandleUploadLoop(void) { return; } #ifdef ESP32 - TWDTLoop(); +// TWDTLoop(); #endif if (upload.totalSize && !(upload.totalSize % 102400)) { AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_UPLOAD "Progress %d kB"), upload.totalSize / 1024); diff --git a/tasmota/xdrv_52_3_berry_tasmota.ino b/tasmota/xdrv_52_3_berry_tasmota.ino index 1e3c44214..c03fa0f03 100644 --- a/tasmota/xdrv_52_3_berry_tasmota.ino +++ b/tasmota/xdrv_52_3_berry_tasmota.ino @@ -308,7 +308,7 @@ extern "C" { // ESP object int32_t l_yield(bvm *vm); int32_t l_yield(bvm *vm) { - TWDTLoop(); // reset watchdog +// TWDTLoop(); // reset watchdog BrTimeoutYield(); // reset timeout be_return_nil(vm); } @@ -547,7 +547,7 @@ void berry_log(const char * berry_buf) { berry.log.log.remove(berry.log.log.head()); } } else { - TWDTLoop(); // if REPL, printing resets the WDT +// TWDTLoop(); // if REPL, printing resets the WDT } // AddLog(LOG_LEVEL_INFO, PSTR("[Add to log] %s"), berry_buf); berry.log.addString(berry_buf, pre_delimiter, "\n");