Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
114:c24aebb8b473
Parent:
95:42f92b03f1b8
Child:
115:1558e01d04c6
--- a/src/OutputTask/OutputTask.cpp	Thu Sep 22 18:44:57 2016 +0000
+++ b/src/OutputTask/OutputTask.cpp	Thu Sep 22 19:38:03 2016 +0000
@@ -12,7 +12,7 @@
 #include <string>
 #include <algorithm>
 
-// local functions  
+// local functions
 static int  createOutput(const char *controlFile);
 static void loadPersistentOutputs(void);
 static void refreshOutputs(void);
@@ -21,7 +21,7 @@
 static int  unregisterControl(const char *id, unsigned int pri, const char *output);
 
 // The Output Map
-// 
+//
 // this is the main data structure used to distinguish which control has
 // priority of an output. the layout is as-follows:
 //
@@ -32,7 +32,7 @@
 //
 // The Control Vector (per relay) is always sorted by priority, whereas
 // the highest priority control is at the beginning (v.begin()) of the
-// list. 
+// list.
 
 typedef std::map<string, vector<Control> > StringOutputVector_t;
 StringOutputVector_t outputMap;
@@ -106,13 +106,16 @@
 
             // free the message
             OutputMasterMailBox.free(msg);
-            
-            // refresh the outputs 
+
+            // refresh the outputs
             refreshOutputs();
         }
     }
 }
 
+void foo(const Control *control)
+{
+}
 
 /*****************************************************************************
  * Function:            refreshOutputs
@@ -134,6 +137,8 @@
         } else {
             // a control is tied to this output
             ModbusMasterWriteRegister(pos->first, pos->second.begin()->getState());
+            foo((Control*)pos->second.begin());
+            printf("Preparing to send the event log data \n");
         }
     }
 }