aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/timer.cpp b/common/timer.cpp
index c6a139bd54..f7d7151c4f 100644
--- a/common/timer.cpp
+++ b/common/timer.cpp
@@ -91,7 +91,7 @@ int Timer::handler(int t) {
for (l = 0; l < MAX_TIMERS; l++) {
if ((_timerSlots[l].procedure) && (_timerSlots[l].interval > 0)) {
_timerSlots[l].counter -= interval;
- if (_timerSlots[l].counter <= 0) {
+ while (_timerSlots[l].counter <= 0) {
_timerSlots[l].counter += _timerSlots[l].interval;
_timerSlots[l].procedure(_timerSlots[l].refCon);
}