Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
196:78397baf0802
Parent:
170:f9406996ff5b
Child:
218:e0c05b4f470b
diff -r 21df85341cb3 -r 78397baf0802 src/ControlTask/ControlTask.cpp
--- a/src/ControlTask/ControlTask.cpp	Thu Oct 06 19:31:13 2016 +0000
+++ b/src/ControlTask/ControlTask.cpp	Thu Oct 06 20:11:56 2016 +0000
@@ -3,6 +3,7 @@
 #include "rtos.h"
 #include "ConfigurationHandler.h"
 #include "MTSLog.h"
+#include "global.h"
 
 static void serviceManualControls(void);
 static void serviceTimerControls(void);
@@ -90,6 +91,8 @@
             // to service the first timer
             TimerError_t rc = pos->second.front()->update();
             if ( rc == TIMER_CONTROL_DESTROY ) {
+                GLOBAL_mdot->deleteUserFile(pos->second.front()->getControlFile().c_str());
+                logInfo("%s: deleted %s", __func__, pos->second.front()->getControlFile().c_str());
                 // free the memory
                 delete pos->second.front();
                 pos->second.erase(pos->second.begin());