Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

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;
+    
 }
 
 //