Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
192:052a419837fa
Parent:
185:5ac6ab1ed875
Child:
212:289f63158d2b
--- a/src/OutputTask/Control.cpp	Thu Oct 06 12:25:44 2016 +0000
+++ b/src/OutputTask/Control.cpp	Thu Oct 06 15:36:26 2016 +0000
@@ -1,6 +1,12 @@
+/******************************************************************************
+ *
+ * File:                Control.cpp
+ * Desciption:          ICE Control Class implementation for Output Thread
+ *
+ *****************************************************************************/
 #include <Control.h>
 
-unsigned int Control::getMappedState(void) const
+int Control::getMappedState(void) const
 {
     switch (controlType) {
         case CONTROL_TIMER:
@@ -9,7 +15,8 @@
         case CONTROL_MANUAL:
             return (state) ? RELAY_STATUS_MANUAL_ON : RELAY_STATUS_MANUAL_OFF;
         case CONTROL_COMPOSITE:
+        case CONTROL_PID:
         default:
-            return 0;
+            return -1;
     }
 }