mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
xtimer_core: piggy-back style fixes
This commit is contained in:
parent
4aa4a17071
commit
085c62ecdc
@ -169,7 +169,8 @@ static inline void _schedule_earliest_lltimer(uint32_t now)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief compare two timers. return true if timerA expires earlier than or equal to timerB and false otherwise.
|
||||
* @brief compare two timers. return true if timerA expires earlier than or
|
||||
* equal to timerB and false otherwise.
|
||||
*/
|
||||
static bool _timer_comparison(xtimer_t* timerA, xtimer_t* timerB, uint32_t now)
|
||||
{
|
||||
@ -278,7 +279,7 @@ static inline void _update_short_timers(uint64_t *now)
|
||||
|
||||
/* make sure we don't fire too early */
|
||||
if (timer->offset > elapsed) {
|
||||
while(_xtimer_now() - timer->start_time < timer->offset) {}
|
||||
while (_xtimer_now() - timer->start_time < timer->offset) {}
|
||||
}
|
||||
/* advance list */
|
||||
timer_list_head = timer->next;
|
||||
|
Loading…
Reference in New Issue
Block a user