Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
269:97243a7f56ba
Parent:
268:50bed2502270
Child:
274:e2caebc7c65e
diff -r 50bed2502270 -r 97243a7f56ba src/OutputTask/OutputTask.cpp
--- a/src/OutputTask/OutputTask.cpp	Tue Oct 25 13:56:14 2016 +0000
+++ b/src/OutputTask/OutputTask.cpp	Wed Oct 26 18:30:08 2016 +0000
@@ -191,7 +191,18 @@
             printf("\rev.outputValue = %.02f\n", ev.outputValue);
             EventLoggerApi(ev);
             break;
-
+            
+        case CONTROL_FAILSAFE:
+            ev.eventReason = EVENT_REASON_FAILSAFE;
+            strncpy(ev.outputTag, output.c_str(), sizeof(ev.outputTag));
+            ModbusMasterReadRegister(output, &output_value);
+            ev.outputValue = output_value.value;
+            printf("\rEVENT RECORD\n");
+            printf("\rrev.eventReason = %d\n", ev.eventReason);
+            printf("\rev.outputTag = %s\n", ev.outputTag);
+            printf("\rev.outputValue = %.02f\n", ev.outputValue);
+            EventLoggerApi(ev); 
+            break;
         default:
             break;
     }