Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/ConfigurationHandler/Controls/TimerControl.cpp
- Revision:
- 157:0d79678ed00f
- Parent:
- 156:44f87c5a83ae
- Child:
- 171:fb29030d4eaf
--- a/src/ConfigurationHandler/Controls/TimerControl.cpp Fri Sep 30 13:37:47 2016 +0000 +++ b/src/ConfigurationHandler/Controls/TimerControl.cpp Fri Sep 30 13:57:45 2016 +0000 @@ -108,8 +108,10 @@ // @param none // @return none // -void TimerControl::update(void) +TimerError_t TimerControl::update(void) { + TimerError_t rc = TIMER_CONTROL_OK; + switch ( this->currentState ) { case STATE_OFF: if ( this->timerStart() ) { @@ -122,6 +124,7 @@ currentState = STATE_OFF; this->stopFeed(); this->unregisterControl(); + rc = TIMER_CONTROL_DESTROY; } break; case STATE_DISABLED: @@ -129,6 +132,8 @@ default: break; } + return rc; + } //