Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: Light.cpp
- Revision:
- 142:b7a75144b0f1
- Parent:
- 134:58e7537a8c5f
- Child:
- 144:e4d24c2c8f18
--- a/Light.cpp Mon Mar 31 20:32:24 2014 +0000 +++ b/Light.cpp Mon Mar 31 20:37:35 2014 +0000 @@ -69,7 +69,7 @@ // initialize the light void Light::initLight() { - this->m_current_state = LIGHT_DEFAULT_STATE; + sscanf(LIGHT_DEFAULT_STATE,"%d",&this->m_current_state); this->m_last_state = this->m_current_state; }