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