Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
87:c466bde76fa0
Parent:
86:189c125d8878
Child:
89:55ac65d7f206
--- a/src/ConfigurationHandler/Controls/SetpointControl.cpp	Tue Sep 20 15:35:13 2016 +0000
+++ b/src/ConfigurationHandler/Controls/SetpointControl.cpp	Tue Sep 20 16:02:58 2016 +0000
@@ -52,6 +52,7 @@
     input           = json_value["input"].get<string>();
     output          = json_value["output"].get<string>();
     productFactor   = atof(json_value["prodfact"].get<string>().c_str());
+    setpoint        = atof(json_value["setpoint"].get<string>().c_str());
     highAlert       = atof(json_value["halert"].get<string>().c_str());
     lowAlert        = atof(json_value["lalert"].get<string>().c_str());
     highFailsafe    = atof(json_value["hfs"].get<string>().c_str());
@@ -127,12 +128,6 @@
 
 bool SetpointControl::overLimit(void)
 {
-    static int counter = 0;
-    // stubbed for now
-    if ( counter++ == 5 ) {
-        return true;
-    }
-    // stubbed for now
     return false;
 }
 
@@ -145,7 +140,7 @@
 
 bool SetpointControl::underLimit(void)
 {
-    return true;
+    return false;
 }
 
 // Method:              startFeed()