diff --git a/.gitignore b/.gitignore index b18cbdd..b9774e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,41 @@ .pio -.vscode/.browse.c_cpp.db* +.vscode/ +.aider* +.DS_Store +._* +**/.DS_Store +**/.Spotlight-V100 +**/.Trashes +**/.fseventsd +.AppleDouble +**/.DS_Store +**/.Spotlight-V100 +**/.Trashes +**/.fseventsd +.AppleDouble +.aider.chat.history.md +.aider.input.history +.DS_Store +.gitignore +.aider.tags.cache.v3/cache.db +.aider.tags.cache.v3/cache.db-shm +.aider.tags.cache.v3/cache.db-wal .vscode/c_cpp_properties.json .vscode/launch.json .vscode/ipch .vscode/extensions.json -.vscode/settings.json -data +.vscode/launch.json +include/README +lib/README +test/README +.aider* +data/* +!data/ +!data/.gitkeep +html/bambu_credentials.json +html/spoolman_url.json +_local/* +website/* +release.sh +.github/copilot-instructions.md +data \ No newline at end of file diff --git a/src/api.cpp b/src/api.cpp index cb42bdc..e19fb9a 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -599,8 +599,6 @@ bool saveSpoolmanUrl(const String& url, bool octoOn, const String& octo_url, con octoUrl = octo_url; octoToken = octoTk; - doc.clear(); - return true; } diff --git a/src/website.cpp b/src/website.cpp index f87dba2..6723a0c 100644 --- a/src/website.cpp +++ b/src/website.cpp @@ -273,8 +273,6 @@ void setupWebserver(AsyncWebServer &server) { html.replace("{{autoSendToBambu}}", bambuCredentials.autosend_enable ? "checked" : ""); html.replace("{{autoSendTime}}", (bambuCredentials.autosend_time != 0) ? String(bambuCredentials.autosend_time) : String(BAMBU_DEFAULT_AUTOSEND_TIME)); - doc.clear(); - request->send(200, "text/html", html); });