Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
196:78397baf0802
Parent:
195:21df85341cb3
Child:
205:3c84af5f711f
--- a/src/ConfigurationHandler/ConfigurationHandler.cpp	Thu Oct 06 19:31:13 2016 +0000
+++ b/src/ConfigurationHandler/ConfigurationHandler.cpp	Thu Oct 06 20:11:56 2016 +0000
@@ -259,6 +259,8 @@
             StringSetpointMap::iterator pos;
             pos = setpointTable.find(msg->controlFile);
             if ( pos != setpointTable.end() ) {
+                GLOBAL_mdot->deleteUserFile(msg->controlFile);
+                logInfo("%s: deleted %s", __func__, msg->controlFile);
                 pos->second->unregisterControl();
                 delete (pos->second);
                 setpointTable.erase(pos);
@@ -269,10 +271,10 @@
         }
         case CONTROL_TIMER: {
             StringVectorTimerMap::iterator pos;
-            #if 0 
+            #if 0
             pos = timerTable.find(msg->controlFile);
             if ( pos != timerTable.end() ) {
-                delete (pos->second);
+                delete ((*pos)->second);
                 timerTable.erase(pos);
             }
             #endif 
@@ -282,6 +284,8 @@
             StringManualMap::iterator pos;
             pos = manualTable.find(msg->controlFile);
             if ( pos != manualTable.end() ) {
+                GLOBAL_mdot->deleteUserFile(msg->controlFile);
+                logInfo("%s: deleted %s", __func__, msg->controlFile);
                 pos->second->unregisterControl();
                 delete (pos->second);
                 manualTable.erase(pos);