mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-23 21:43:51 +01:00
Merge pull request #3971 from gebart/pr/xtimer-core-reference-now
xtimer-core: Use xtimer_now as reference time instead of future timer target
This commit is contained in:
commit
49ef26dd7c
@ -444,8 +444,8 @@ static void _timer_callback(void)
|
||||
/* we ended up in _timer_callback and there is
|
||||
* a timer waiting.
|
||||
*/
|
||||
/* set our period reference to that timer's target time. */
|
||||
reference = _mask(timer_list_head->target);
|
||||
/* set our period reference to the current time. */
|
||||
reference = _xtimer_now();
|
||||
}
|
||||
|
||||
overflow:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user