From 49748efc8b79cf504863beba02fe8bad92fef6f4 Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Fri, 25 Feb 2022 13:20:23 +0100 Subject: [PATCH] sys/ztimer/xtimer_compat: fix bug introduced in #17690 --- sys/include/ztimer/xtimer_compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/include/ztimer/xtimer_compat.h b/sys/include/ztimer/xtimer_compat.h index c184b0adf4029..547e65bd5eb70 100644 --- a/sys/include/ztimer/xtimer_compat.h +++ b/sys/include/ztimer/xtimer_compat.h @@ -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)