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: ExternalLEDLight.cpp
- Revision:
- 107:db7af0f306fa
- Parent:
- 105:759dee018363
- Child:
- 108:673b2f43dfe7
--- a/ExternalLEDLight.cpp Sun Mar 16 05:59:35 2014 +0000 +++ b/ExternalLEDLight.cpp Sun Mar 16 06:06:08 2014 +0000 @@ -49,7 +49,10 @@ else { // turn the light on or off if (this->m_state == 0) *(this->m_led) = 0; - else *(this->m_led) = 1; + else { + if (*(this->m_led) == 0) + *(this->m_led) = 1; + } } }