1
0
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:
Joakim Nohlgård 2015-09-26 07:13:43 +02:00
commit 49ef26dd7c

View File

@ -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: