Skip to content

Commit c5388c3

Browse files
authored
Merge pull request #9 from Qrome/1.1
1.1
2 parents ec45103 + 8b12fc1 commit c5388c3

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

marquee/marquee.ino

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,17 @@ void handleForgetWifi() {
382382
}
383383

384384
void handleConfigure() {
385+
386+
digitalWrite(externalLight, LOW);
387+
String html = "";
388+
389+
server.sendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
390+
server.sendHeader("Pragma", "no-cache");
391+
server.sendHeader("Expires", "-1");
392+
server.setContentLength(CONTENT_LENGTH_UNKNOWN);
393+
server.send(200, "text/html", "");
394+
server.sendContent(String(getHeader()));
395+
385396
String form = String(CHANGE_FORM);
386397
for (int inx = 0; inx < 1; inx++) {
387398
String cityName = "";
@@ -433,7 +444,12 @@ void handleConfigure() {
433444
form.replace("%OCTOKEY%", OctoPrintApiKey);
434445
form.replace("%OCTOADDRESS%", OctoPrintServer);
435446
form.replace("%OCTOPORT%", String(OctoPrintPort));
436-
displayMessage(String(form));
447+
448+
server.sendContent(String(form));
449+
450+
server.sendContent(String(getFooter()));
451+
server.client().stop();
452+
digitalWrite(externalLight, HIGH);
437453
}
438454

439455
void handleDisplay() {

0 commit comments

Comments
 (0)