Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
208:784c46652863
Parent:
207:55aabde2d4bf
Child:
217:d5a2ff093319
--- a/src/ConfigurationHandler/ConfigurationHandler.cpp	Mon Oct 10 12:51:32 2016 +0000
+++ b/src/ConfigurationHandler/ConfigurationHandler.cpp	Mon Oct 10 13:55:23 2016 +0000
@@ -245,13 +245,25 @@
             StringSetpointMap::iterator pos;
             pos = setpointTable.find(msg->controlFile);
             if ( pos != setpointTable.end() ) {
-                printf("\rDEBUG: found the control!");
-                printf("\r-> %s\n", pos->second->getId().c_str());
                 int rc = pos->second->load(msg->controlFile);
                 if ( rc != true ) {
-                    logError("\rFailed to reload the setpoint control\n");
+                    logError("\rFailed to reload the setpoint control %s\n", msg->controlFile);
                 } else {
-                    logInfo("\rReloaded the setpoint control\n");
+                    logInfo("\rReloaded the setpoint control %s\n", msg->controlFile);
+                }
+            }
+            break;
+        }
+        case CONTROL_MANUAL: {
+            // find the manual control in the table
+            StringManualMap::iterator pos;
+            pos = manualTable.find(msg->controlFile);
+            if ( pos != manualTable.end() ) {
+                int rc = pos->second->load(msg->controlFile);
+                if ( rc != true ) {
+                    logError("\rFailed to reload the manual control %s\n", msg->controlFile);
+                } else {
+                    logInfo("\rReloaded the manual control %s\n", msg->controlFile);
                 }
             }
             break;