Skip to content

Commit

Permalink
Increase timer frequency to its maximum
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoellendorf committed Apr 30, 2024
1 parent 448fe37 commit 460bbd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LmTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ void Timer::unregisterCallback(timer_cb callback)

ISR(TIMER0_COMPA_vect)
{
if ((Timer::counter++) % (8 * Timer::cb_count))
return;
Timer::counter++;

for (int cb = 0; cb < n_cb; cb++) {
if (!Timer::callbacks[cb])
Expand Down

0 comments on commit 460bbd1

Please sign in to comment.