From d6e71f48e716818218355366f87a441ce38e3a4c Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 9 Jan 2021 15:40:54 +0100 Subject: [PATCH] Fix Blocked Loop error due to large file upload --- tasmota/xdrv_01_webserver.ino | 1 + tasmota/xdrv_50_filesystem.ino | 1 + 2 files changed, 2 insertions(+) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 69190a99b..e7d081b60 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -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 } /*-------------------------------------------------------------------------------------------*/ diff --git a/tasmota/xdrv_50_filesystem.ino b/tasmota/xdrv_50_filesystem.ino index d7606042a..4deb956c4 100644 --- a/tasmota/xdrv_50_filesystem.ino +++ b/tasmota/xdrv_50_filesystem.ino @@ -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