diff options
author | Mike Beattie <mike@ethernal.org> | 2012-03-30 10:50:48 +1300 |
---|---|---|
committer | Mike Beattie <mike@ethernal.org> | 2012-03-30 10:50:48 +1300 |
commit | 50ba1fc8f9c21210d22e3f574e76664b53336874 (patch) | |
tree | 231a50a12296a0c9fbf96ae7fda8235dae2f87ae | |
parent | ac4f628a58e99c38bd726ceb5bf47f804f97437d (diff) |
Signed-off-by: Mike Beattie <mike@ethernal.org>
-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) { |