Qrome - fixed bug that didn't load the printer data on boot

pull/2/head
Chrome Legion 2018-05-09 21:47:54 -07:00
parent 27f1fd5a9b
commit 59c2023b27
1 changed files with 849 additions and 849 deletions

View File

@ -337,7 +337,6 @@ void handleUpdateConfig() {
temp = server.arg("stationpassword"); temp = server.arg("stationpassword");
temp.toCharArray(www_password, sizeof(temp)); temp.toCharArray(www_password, sizeof(temp));
writeSettings(); writeSettings();
printerClient.updateOctoPrintClient(OctoPrintApiKey, OctoPrintServer, OctoPrintPort);
printerClient.getPrinterJobResults(); printerClient.getPrinterJobResults();
checkDisplay(); checkDisplay();
lastEpoch = 0; lastEpoch = 0;
@ -768,6 +767,7 @@ void readSettings() {
} }
} }
fr.close(); fr.close();
printerClient.updateOctoPrintClient(OctoPrintApiKey, OctoPrintServer, OctoPrintPort);
timeClient.setUtcOffset(UtcOffset); timeClient.setUtcOffset(UtcOffset);
} }