httpUpload WDT -> yield

This commit is contained in:
Patrick Haßel 2025-09-03 17:23:06 +02:00
parent 2652de5cb8
commit 556f277016
2 changed files with 5 additions and 4 deletions

View File

@ -127,6 +127,7 @@ void httpSet() {
} }
void httpUpload(const char *name) { void httpUpload(const char *name) {
yield();
const auto upload = server.upload(); const auto upload = server.upload();
if (upload.status == UPLOAD_FILE_START) { if (upload.status == UPLOAD_FILE_START) {
char path[64]; char path[64];

View File

@ -4,9 +4,9 @@ cd "$(dirname "$0")" || exit 1
minify index.html | sed 's|http://10.42.0.204||g' > index.html.min || exit 2 minify index.html | sed 's|http://10.42.0.204||g' > index.html.min || exit 2
curl -s 'http://10.42.0.204/upload/index' -F "file=@index.html.min" #curl -s 'http://10.42.0.204/upload/index' -F "file=@index.html.min"
curl -s 'http://10.42.0.204/upload/icon' -F "file=@icon.svg" #curl -s 'http://10.42.0.204/upload/icon' -F "file=@icon.svg"
#curl -s 'http://10.0.0.178/upload/index' -F "file=@index.html.min" #curl -s 'http://10.0.0.178/upload/index' -F "file=@index.html.min"
#curl -s 'http://10.0.0.178/upload/icon' -F "file=@icon.svg" #curl -s 'http://10.0.0.178/upload/icon' -F "file=@icon.svg"
#curl -s 'http://10.0.0.179/upload/index' -F "file=@index.html.min" curl -s 'http://10.0.0.179/upload/index' -F "file=@index.html.min"
#curl -s 'http://10.0.0.179/upload/icon' -F "file=@icon.svg" curl -s 'http://10.0.0.179/upload/icon' -F "file=@icon.svg"