1
0
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:
Martine S. Lenders 2020-04-10 01:07:54 +02:00 committed by Martine Lenders
parent 4aa4a17071
commit 085c62ecdc
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

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