Merge pull request #2 from Qrome/1.2

1.2
pull/4/head V1.2
Qrome 2018-05-09 21:49:55 -07:00 committed by GitHub
commit f39558c4ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "Settings.h"
#define VERSION "1.1"
#define VERSION "1.2"
#define HOSTNAME "ESP8266-"
#define CONFIG "/conf.txt"
@ -337,7 +337,6 @@ void handleUpdateConfig() {
temp = server.arg("stationpassword");
temp.toCharArray(www_password, sizeof(temp));
writeSettings();
printerClient.updateOctoPrintClient(OctoPrintApiKey, OctoPrintServer, OctoPrintPort);
printerClient.getPrinterJobResults();
checkDisplay();
lastEpoch = 0;
@ -768,6 +767,7 @@ void readSettings() {
}
}
fr.close();
printerClient.updateOctoPrintClient(OctoPrintApiKey, OctoPrintServer, OctoPrintPort);
timeClient.setUtcOffset(UtcOffset);
}