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/ControlTask/ControlTask.cpp
- 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());
