Fix Blocked Loop error due to large file upload

This commit is contained in:
Theo Arends 2021-01-09 15:40:54 +01:00
parent 4faf48486b
commit d6e71f48e7
2 changed files with 2 additions and 0 deletions

View File

@ -2588,6 +2588,7 @@ void HandleUploadLoop(void) {
if (UPL_TASMOTA == Web.upload_file_type) { Update.end(); }
}
delay(0);
OsWatchLoop(); // Feed OsWatch timer to prevent restart
}
/*-------------------------------------------------------------------------------------------*/

View File

@ -681,6 +681,7 @@ void UfsUpload(void) {
AddLog_P(LOG_LEVEL_INFO, PSTR("HTP: Upload error %d"), Web.upload_error);
}
delay(0);
OsWatchLoop(); // Feed OsWatch timer to prevent restart
}
#endif // USE_WEBSERVER