mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Fix OTA watchdog caused by TWDTLoop()
This commit is contained in:
parent
f9339a9d06
commit
4c65de2561
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user