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:
- 180:eb43d5cd0ed7
- Parent:
- 173:41c3cb81aba3
- Child:
- 192:54b758a8eaaa
diff -r 35e88daf2d75 -r eb43d5cd0ed7 Light.cpp --- a/Light.cpp Tue Sep 09 20:41:24 2014 +0000 +++ b/Light.cpp Fri Sep 12 20:36:09 2014 +0000 @@ -195,7 +195,7 @@ this->m_is_blinking = true; #ifdef COPCAR_PERSONALITY if (EXT_LED_ENABLE && this->extled() != NULL) { ((CopCarLEDFlasher *)this->extled())->on(); } - wait_ms(125); + Thread::wait(125); if (EXT_LED_ENABLE && this->extled() != NULL) { ((CopCarLEDFlasher *)this->extled())->off(); } this->m_current_state = 0; this->manageBlinkingThread(); @@ -209,11 +209,11 @@ if (APM_LIGHT_ENABLE && this->apmlight() != NULL) { if (this->m_forward) this->apmlight()->on(); else this->apmlight()->off(); } #endif - wait_ms(LIGHT_BLINK_WAIT_MS); + Thread::wait(LIGHT_BLINK_WAIT_MS); this->m_is_blinking = true; #ifdef COPCAR_PERSONALITY if (EXT_LED_ENABLE && this->extled() != NULL) { ((CopCarLEDFlasher *)this->extled())->on(); } - wait_ms(125); + Thread::wait(125); if (EXT_LED_ENABLE && this->extled() != NULL) { ((CopCarLEDFlasher *)this->extled())->off(); } this->m_current_state = 0; this->manageBlinkingThread(); @@ -226,7 +226,7 @@ #ifdef APM_LIGHT_PERSONALITY if (APM_LIGHT_ENABLE && this->apmlight() != NULL) { if (this->m_forward) this->apmlight()->off(); else this->apmlight()->on(); } #endif - wait_ms(LIGHT_BLINK_WAIT_MS); + Thread::wait(LIGHT_BLINK_WAIT_MS); } // dim