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:
- 195:21df85341cb3
- Parent:
- 170:f9406996ff5b
- Child:
- 196:78397baf0802
diff -r 5aa463e15d27 -r 21df85341cb3 src/ConfigurationHandler/ConfigurationHandler.cpp
--- a/src/ConfigurationHandler/ConfigurationHandler.cpp Thu Oct 06 15:46:13 2016 +0000
+++ b/src/ConfigurationHandler/ConfigurationHandler.cpp Thu Oct 06 19:31:13 2016 +0000
@@ -129,7 +129,6 @@
loaded = true;
for (std::vector<mDot::mdot_file>::iterator i = file_list.begin(); i != file_list.end(); ++i) {
- printf("\rFile: %s\r\n",i->name);
if( strncmp( i->name, CONTROL_SP_STR, strlen(CONTROL_SP_STR)) == 0 ) {
// create the setpoint control
Message_t msg;
@@ -157,12 +156,10 @@
// TODO: delete any timed manual control, not continuous...
GLOBAL_mdot->deleteUserFile(i->name);
} else {
- printf("\rNot A Control File%s\r\n",i->name);
+ logInfo("\rNot A Control File%s\r\n",i->name);
// not a control file
}
- printf("\rend of loop:%s\r\n",i->name);
}
- printf("\rOUT OF LOOP\r\n");
}
return 0;
}
@@ -265,6 +262,8 @@
pos->second->unregisterControl();
delete (pos->second);
setpointTable.erase(pos);
+ } else {
+ logError("%s: unable to find %s\n", __func__, msg->controlFile);
}
break;
}
@@ -286,6 +285,8 @@
pos->second->unregisterControl();
delete (pos->second);
manualTable.erase(pos);
+ } else {
+ logError("%s: unable to find %s", __func__, msg->controlFile);
}
break;
}
