mirror of https://github.com/arendst/Tasmota.git
Fix Blocked Loop error due to large file upload
This commit is contained in:
parent
4faf48486b
commit
d6e71f48e7
|
@ -2588,6 +2588,7 @@ void HandleUploadLoop(void) {
|
||||||
if (UPL_TASMOTA == Web.upload_file_type) { Update.end(); }
|
if (UPL_TASMOTA == Web.upload_file_type) { Update.end(); }
|
||||||
}
|
}
|
||||||
delay(0);
|
delay(0);
|
||||||
|
OsWatchLoop(); // Feed OsWatch timer to prevent restart
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -681,6 +681,7 @@ void UfsUpload(void) {
|
||||||
AddLog_P(LOG_LEVEL_INFO, PSTR("HTP: Upload error %d"), Web.upload_error);
|
AddLog_P(LOG_LEVEL_INFO, PSTR("HTP: Upload error %d"), Web.upload_error);
|
||||||
}
|
}
|
||||||
delay(0);
|
delay(0);
|
||||||
|
OsWatchLoop(); // Feed OsWatch timer to prevent restart
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // USE_WEBSERVER
|
#endif // USE_WEBSERVER
|
||||||
|
|
Loading…
Reference in New Issue