Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
70:7427f4959201
Parent:
56:225786c56315
Child:
71:34856d21f2bf
--- a/src/ConfigurationHandler/Controls/SetpointControl.cpp	Fri Sep 16 15:30:47 2016 +0000
+++ b/src/ConfigurationHandler/Controls/SetpointControl.cpp	Fri Sep 16 17:54:51 2016 +0000
@@ -154,7 +154,7 @@
 bool SetpointControl::underLimit(void)
 {
     // stubbed for now
-    return false;
+    return true;
 }
 
 // Method:              startFeed()
@@ -169,16 +169,15 @@
     logInfo("%s: %s attempting to start feed on relay %s\n",
             __func__, controlFile.c_str(), output.c_str());
 
-    OutputControlReq_t *msg  = OutputMasterMailBox.alloc();
+    OutputControlMsg_t *msg  = OutputMasterMailBox.alloc();
 
     // construct the ON message
-    msg->relay      = this->output;
+    msg->output     = this->output;
     msg->state      = ON;
-    msg->priority = this->priority;
+    msg->priority   = this->priority;
 
-    // ship it
+    // ship it to the output task 
     OutputMasterMailBox.put(msg);
-
 }
 
 // Method:              stopFeed
@@ -193,10 +192,10 @@
     logInfo("%s: %s attempting to start feed on relay %s\n",
             __func__, controlFile.c_str(), output.c_str());
 
-    OutputControlReq_t *msg  = OutputMasterMailBox.alloc();
+    OutputControlMsg_t *msg  = OutputMasterMailBox.alloc();
 
     // construct the OFF message
-    msg->relay      = this->output;
+    msg->output     = this->output;
     msg->state      = OFF;
     msg->priority   = this->priority;