From 07f95cfdfa3273eb60561f9f06edce72b821f47e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Wed, 28 Oct 2015 07:39:54 +0100 Subject: [PATCH] xtimer: xtimer_spin_until(): value -> target --- sys/include/xtimer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/include/xtimer.h b/sys/include/xtimer.h index 5fcc8de19c..015c16b297 100644 --- a/sys/include/xtimer.h +++ b/sys/include/xtimer.h @@ -469,12 +469,12 @@ static inline uint32_t xtimer_now(void) #endif } -static inline void xtimer_spin_until(uint32_t value) { +static inline void xtimer_spin_until(uint32_t target) { #if XTIMER_MASK - value = _mask(value); + target = _mask(target); #endif - while (_xtimer_now() > value); - while (_xtimer_now() < value); + while (_xtimer_now() > target); + while (_xtimer_now() < target); } static inline void xtimer_spin(uint32_t offset) {