diff --git a/src/avr/timer.c b/src/avr/timer.c index d306b7214..ef6269f06 100644 --- a/src/avr/timer.c +++ b/src/avr/timer.c @@ -154,7 +154,6 @@ static struct timer wrap_timer = { .waketime = 0x8000, }; -#define TIMER_IDLE_REPEAT_TICKS 8000 #define TIMER_REPEAT_TICKS 3000 #define TIMER_MIN_ENTRY_TICKS 44 @@ -202,7 +201,7 @@ ISR(TIMER1_COMPA_vect) next = now + TIMER_DEFER_REPEAT_TICKS; goto done; } - timer_repeat_set(now + TIMER_IDLE_REPEAT_TICKS); + timer_repeat_set(now + TIMER_REPEAT_TICKS); timer_set(now); } } diff --git a/src/generic/armcm_timer.c b/src/generic/armcm_timer.c index e77081804..b7f572685 100644 --- a/src/generic/armcm_timer.c +++ b/src/generic/armcm_timer.c @@ -112,7 +112,6 @@ timer_init(void) DECL_INIT(timer_init); static uint32_t timer_repeat_until; -#define TIMER_IDLE_REPEAT_TICKS timer_from_us(500) #define TIMER_REPEAT_TICKS timer_from_us(100) #define TIMER_MIN_TRY_TICKS timer_from_us(2) @@ -141,7 +140,7 @@ timer_dispatch_many(void) timer_repeat_until = now + TIMER_REPEAT_TICKS; return TIMER_DEFER_REPEAT_TICKS; } - timer_repeat_until = tru = now + TIMER_IDLE_REPEAT_TICKS; + timer_repeat_until = tru = now + TIMER_REPEAT_TICKS; } // Next timer in the past or near future - wait for it to be ready diff --git a/src/generic/timer_irq.c b/src/generic/timer_irq.c index 7c2e871bd..9f6b59aa3 100644 --- a/src/generic/timer_irq.c +++ b/src/generic/timer_irq.c @@ -30,7 +30,6 @@ timer_is_before(uint32_t time1, uint32_t time2) } static uint32_t timer_repeat_until; -#define TIMER_IDLE_REPEAT_TICKS timer_from_us(500) #define TIMER_REPEAT_TICKS timer_from_us(100) #define TIMER_MIN_TRY_TICKS timer_from_us(2) @@ -59,7 +58,7 @@ timer_dispatch_many(void) timer_repeat_until = now + TIMER_REPEAT_TICKS; return now + TIMER_DEFER_REPEAT_TICKS; } - timer_repeat_until = tru = now + TIMER_IDLE_REPEAT_TICKS; + timer_repeat_until = tru = now + TIMER_REPEAT_TICKS; } // Next timer in the past or near future - wait for it to be ready