Skip to content

Commit

Permalink
sys/ztimer/xtimer_compat: fix bug introduced in #17690
Browse files Browse the repository at this point in the history
  • Loading branch information
kfessel committed Feb 25, 2022
1 parent d895a29 commit 49748ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/include/ztimer/xtimer_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ static inline uint64_t xtimer_tsleep64(xtimer_ticks64_t ticks)
uint64_t time = xtimer_usec_from_ticks64(ticks);

while (time > max_sleep) {
xtimer_usleep(clock, max_sleep);
xtimer_usleep(ZTIMER_USEC, max_sleep);
time -= max_sleep;
}
xtimer_usleep(clock, time);
xtimer_usleep(ZTIMER_USEC, time);
}

static inline void xtimer_set(xtimer_t *timer, uint32_t offset)
Expand Down

0 comments on commit 49748ef

Please sign in to comment.