Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
195:21df85341cb3
Parent:
170:f9406996ff5b
Child:
196:78397baf0802
--- 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;
         }