From 556f27701607baa1985d25b6de33364dbc67ef1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Wed, 3 Sep 2025 17:23:06 +0200 Subject: [PATCH] httpUpload WDT -> yield --- src/http.cpp | 1 + upload.sh | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/http.cpp b/src/http.cpp index 683b09e..0620469 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -127,6 +127,7 @@ void httpSet() { } void httpUpload(const char *name) { + yield(); const auto upload = server.upload(); if (upload.status == UPLOAD_FILE_START) { char path[64]; diff --git a/upload.sh b/upload.sh index 684e2be..7983a4c 100644 --- a/upload.sh +++ b/upload.sh @@ -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 -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/index' -F "file=@index.html.min" +#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/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/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/icon' -F "file=@icon.svg"