Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
156:44f87c5a83ae
Parent:
132:45821e189dd0
Child:
157:0d79678ed00f
--- a/src/ControlTask/ControlTask.cpp	Fri Sep 30 12:27:14 2016 +0000
+++ b/src/ControlTask/ControlTask.cpp	Fri Sep 30 13:37:47 2016 +0000
@@ -34,12 +34,16 @@
         }
         // service the timer controls
         if ( !timerTable.empty() ) {
-            StringTimerMap::iterator pos;
+            StringVectorTimerMap::iterator pos;
             for ( pos = timerTable.begin(); pos != timerTable.end(); ++pos ) {
-                pos->second->update();
+                // the timer vector is sorted by starttime, so we only need
+                // to service the first timer
+                pos->second.front()->update();
             }
         }
         
+        // service the composite controls 
+        
         Thread::wait(1000);     // do we need to wait?
     }
 }
\ No newline at end of file