From 50ba1fc8f9c21210d22e3f574e76664b53336874 Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Fri, 30 Mar 2012 10:50:48 +1300 Subject: Config variable rename. Signed-off-by: Mike Beattie --- HouseControl.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'HouseControl.ino') 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) { -- cgit v1.2.3