Fix OTA watchdog caused by TWDTLoop()

This commit is contained in:
Theo Arends 2021-10-27 16:22:50 +02:00
parent f9339a9d06
commit 4c65de2561
3 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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");