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:
- 205:3c84af5f711f
- Parent:
- 196:78397baf0802
- Child:
- 207:55aabde2d4bf
--- a/src/ConfigurationHandler/ConfigurationHandler.cpp Fri Oct 07 14:47:39 2016 +0000
+++ b/src/ConfigurationHandler/ConfigurationHandler.cpp Fri Oct 07 17:41:23 2016 +0000
@@ -22,8 +22,9 @@
static int modifyControl(const Message_t *msg);
static int destroyControl(const Message_t *msg);
-// sort function for timer controls
-bool compareStartTime(const TimerControl *lhs, const TimerControl *rhs) {
+// sort function for timer controls
+bool compareStartTime(const TimerControl *lhs, const TimerControl *rhs)
+{
return (lhs->getStartTime() < rhs->getStartTime());
}
@@ -83,7 +84,7 @@
void ConfigurationHandler_showControls(void)
{
if ( !timerTable.empty() ) {
- printf("\rTIMER CONTROLS\n");
+ printf("\r\n");
StringVectorTimerMap::iterator pos;
for ( pos = timerTable.begin(); pos != timerTable.end(); ++pos ) {
vector<TimerControl *>::iterator it;
@@ -94,7 +95,7 @@
}
if ( !setpointTable.empty() ) {
- printf("\rSETPOINT CONTROLS\n");
+ printf("\r\n");
StringSetpointMap::iterator pos;
for ( pos = setpointTable.begin(); pos != setpointTable.end(); ++pos ) {
pos->second->display();
@@ -102,7 +103,7 @@
}
if ( !manualTable.empty() ) {
- printf("MANUAL CONTROLS\n");
+ printf("\r\n");
StringManualMap::iterator pos;
for ( pos = manualTable.begin(); pos != manualTable.end(); ++pos ) {
pos->second->display();
@@ -271,13 +272,13 @@
}
case CONTROL_TIMER: {
StringVectorTimerMap::iterator pos;
- #if 0
+#if 0
pos = timerTable.find(msg->controlFile);
if ( pos != timerTable.end() ) {
delete ((*pos)->second);
timerTable.erase(pos);
}
- #endif
+#endif
break;
}
case CONTROL_MANUAL: {
