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(); SettingsDelta();
#ifdef ESP32 #ifdef ESP32
TWDTInit(); // Start Task WDT for ESP32 - FreeRTOS only // TWDTInit(); // Start Task WDT for ESP32 - FreeRTOS only
#endif #endif
OsWatchInit(); OsWatchInit();
@ -513,7 +513,7 @@ void Scheduler(void) {
#endif // ESP8266 #endif // ESP8266
#ifdef ESP32 #ifdef ESP32
TWDTLoop(); // TWDTLoop();
#endif #endif
OsWatchLoop(); OsWatchLoop();
ButtonLoop(); ButtonLoop();

View File

@ -2795,7 +2795,7 @@ void HandleUploadLoop(void) {
return; return;
} }
#ifdef ESP32 #ifdef ESP32
TWDTLoop(); // TWDTLoop();
#endif #endif
if (upload.totalSize && !(upload.totalSize % 102400)) { if (upload.totalSize && !(upload.totalSize % 102400)) {
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_UPLOAD "Progress %d kB"), upload.totalSize / 1024); AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_UPLOAD "Progress %d kB"), upload.totalSize / 1024);

View File

@ -308,7 +308,7 @@ extern "C" {
// ESP object // ESP object
int32_t l_yield(bvm *vm); int32_t l_yield(bvm *vm);
int32_t l_yield(bvm *vm) { int32_t l_yield(bvm *vm) {
TWDTLoop(); // reset watchdog // TWDTLoop(); // reset watchdog
BrTimeoutYield(); // reset timeout BrTimeoutYield(); // reset timeout
be_return_nil(vm); be_return_nil(vm);
} }
@ -547,7 +547,7 @@ void berry_log(const char * berry_buf) {
berry.log.log.remove(berry.log.log.head()); berry.log.log.remove(berry.log.log.head());
} }
} else { } 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); // AddLog(LOG_LEVEL_INFO, PSTR("[Add to log] %s"), berry_buf);
berry.log.addString(berry_buf, pre_delimiter, "\n"); berry.log.addString(berry_buf, pre_delimiter, "\n");