mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
cpu/nrf5x_common/periph_timer: Clear periodic flag on set
A call to timer_set_absolute() should clear the periodic flag on the specified timer and channel. This adds it.
This commit is contained in:
parent
11a41345e0
commit
3ad897df2a
@ -101,6 +101,7 @@ int timer_set_absolute(tim_t tim, int chan, unsigned int value)
|
||||
}
|
||||
|
||||
ctx[tim].flags |= (1 << chan);
|
||||
ctx[tim].is_periodic &= ~(1 << chan);
|
||||
dev(tim)->CC[chan] = value;
|
||||
|
||||
/* clear spurious IRQs */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user