Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/ControlTask/ControlTask.cpp
- Revision:
- 156:44f87c5a83ae
- Parent:
- 132:45821e189dd0
- Child:
- 157:0d79678ed00f
diff -r 62d9a1c5c25a -r 44f87c5a83ae src/ControlTask/ControlTask.cpp
--- 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
