Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
111:d31b3a347e6a
Parent:
97:5cf6ab71dcd0
--- a/src/ConfigurationHandler/ConfigurationHandler.cpp	Thu Sep 22 15:16:55 2016 +0000
+++ b/src/ConfigurationHandler/ConfigurationHandler.cpp	Thu Sep 22 16:12:12 2016 +0000
@@ -183,6 +183,8 @@
                 delete timerControl;
             } else {
                 timerTable[msg->controlFile] = timerControl;
+                // start the timer control
+                timerControl->start();
             }
             break;
         }
@@ -251,6 +253,7 @@
             StringTimerMap::iterator pos;
             pos = timerTable.find(msg->controlFile);
             if ( pos != timerTable.end() ) {
+                pos->second->unregisterControl();
                 delete (pos->second);
                 timerTable.erase(pos);
             }