diff --git a/src/core/timers.cpp b/src/core/timers.cpp index fc7a06396..a8c480340 100644 --- a/src/core/timers.cpp +++ b/src/core/timers.cpp @@ -349,7 +349,7 @@ TickCount Timers::GetTicksUntilNextInterrupt() const min_ticks_for_this_timer = std::min(min_ticks_for_this_timer, static_cast(0xFFFF - cs.counter)); if (cs.external_counting_enabled) // sysclk/8 for timer 2 - min_ticks_for_this_timer = std::max(1, min_ticks_for_this_timer / 8); + min_ticks_for_this_timer = std::max(1, min_ticks_for_this_timer * 8); min_ticks = std::min(min_ticks, min_ticks_for_this_timer); }