diff options
-rw-r--r-- | HouseControl.ino | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/HouseControl.ino b/HouseControl.ino index 9212d43..3dad85f 100644 --- a/HouseControl.ino +++ b/HouseControl.ino @@ -43,7 +43,7 @@ /* Typedefs/datastructures */ struct st_config { - byte configVersion; + byte version; byte mac[6]; byte def_ip[4]; @@ -331,7 +331,7 @@ void configGetHandler(WebServer &server, WebServer::ConnectionType type, char *u /* we don't output the body for a HEAD request */ if (type == WebServer::GET) { - sprintf_P((char*)buf1, PSTR("{\"info\":{\"version\":%d,\"time\":\""), config.configVersion); + sprintf_P((char*)buf1, PSTR("{\"info\":{\"version\":%d,\"time\":\""), config.version); server.print((char*)buf1); server.print(time_to_str(buf2, time)); @@ -529,10 +529,10 @@ void setup() { eepromRead(0, eepromVersion); - if (config.configVersion > eepromVersion) + if (config.version > eepromVersion) eepromWrite(0, config); - if (config.configVersion > 0) + if (config.version > 0) eepromRead(0, config); if(Ethernet.begin(config.mac) == 0) { |