Dreamforce 2013 MiniHack Thermostat Challenge - remotes
Dependencies: C12832_lcd EthernetInterface-ansond-patched HTTPClient-thermostat-remotes LM75B MMA7660 SocketIO WebSocketClient-ThermostatDemo mbed-rtos mbed picojson
Fork of df-2013-minihack-thermostat-complete by
Diff: Thermostat-Location.h
- Revision:
- 4:379e9ad21486
- Parent:
- 0:26c48388f725
- Child:
- 6:33f71cf9a04f
diff -r 340477adb161 -r 379e9ad21486 Thermostat-Location.h --- a/Thermostat-Location.h Fri Nov 08 20:10:52 2013 +0000 +++ b/Thermostat-Location.h Sun Nov 10 16:38:24 2013 +0000 @@ -26,8 +26,8 @@ // update our location coordinates void Thermostat::updateCoordinates() { - this->m_latitude = DEFAULT_LATITUDE; - this->m_longitude = DEFAULT_LONGITUDE; + this->m_latitude = latitudes[location_index]; + this->m_longitude = longitudes[location_index]; this->display("Location: Latitude:%2.4f Longitude:%2.4f",this->m_latitude,this->m_longitude); this->display_lcd("Location Coordinates\r\nLatitude: %2.4f\r\nLongitude: %2.4f",this->m_latitude,this->m_longitude);