diff --git a/src/Network/WebServer.cpp b/src/Network/WebServer.cpp index 2f9bb52..8985be5 100644 --- a/src/Network/WebServer.cpp +++ b/src/Network/WebServer.cpp @@ -424,7 +424,6 @@ void WebServer::handleConfigurePrinter() { WebserverMemoryVariables::sendFooter(this->server, this->globalDataController); } - /** * @brief Update configuration for Printer */ @@ -465,6 +464,11 @@ void WebServer::handleUpdatePrinter() { MemoryHelper::stringToChar(this->server->arg("e-tapiuser"), targetPrinter->basicAuthUsername, 30); MemoryHelper::stringToChar(this->server->arg("e-tapipass"), targetPrinter->basicAuthPassword, 60); + // Reset error data + MemoryHelper::stringToChar("", targetPrinter->error, 120); + targetPrinter->state = PRINTER_STATE_OFFLINE; + + // Save this->globalDataController->getSystemSettings()->lastOk = FPSTR(OK_MESSAGES_SAVE1); this->globalDataController->writeSettings(); this->redirectTarget("/configureprinter/show"); diff --git a/templates/html-ui/configureprinter.html b/templates/html-ui/configureprinter.html index e765d3b..d3fe369 100644 --- a/templates/html-ui/configureprinter.html +++ b/templates/html-ui/configureprinter.html @@ -1,5 +1,6 @@ - + +
[Other Duet] Server address or host name is required
+WARNING
+Delete printer +
+WARNING
+Delete printer
+ +WARNING
+Reset settings +
+WARNING
+Reset wifi
+