From da7877e8ab094e335164c20a1128a8553d5c5d6e Mon Sep 17 00:00:00 2001 From: nvt-se Date: Wed, 5 Nov 2008 19:34:36 +0000 Subject: [PATCH] corrected macro name --- core/sys/stimer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/sys/stimer.c b/core/sys/stimer.c index 917bc12f2..b300afb3d 100644 --- a/core/sys/stimer.c +++ b/core/sys/stimer.c @@ -42,15 +42,15 @@ * * Author: Adam Dunkels , Nicolas Tsiftes * - * $Id: stimer.c,v 1.1 2008/10/02 10:17:48 nvt-se Exp $ + * $Id: stimer.c,v 1.2 2008/11/05 19:34:36 nvt-se Exp $ */ #include "contiki-conf.h" #include "sys/clock.h" #include "sys/stimer.h" -#define SCLOCK_LT(a, b) ((unsigned long)((a) - (b)) < \ - ((unsigned long)(~((unsigned long)0)) >> 1)) +#define SCLOCK_GEQ(a, b) ((unsigned long)((a) - (b)) < \ + ((unsigned long)(~((unsigned long)0)) >> 1)) /*---------------------------------------------------------------------------*/ /** @@ -124,7 +124,7 @@ stimer_restart(struct stimer *t) int stimer_expired(struct stimer *t) { - return SCLOCK_LT(clock_seconds(), t->start + t->interval); + return SCLOCK_GEQ(clock_seconds(), t->start + t->interval); } /*---------------------------------------------------------------------------*/ /**