diff --git a/src/gtimer/gtimer_gtimer.c b/src/gtimer/gtimer_gtimer.c index 5289b7b8..38dceca5 100644 --- a/src/gtimer/gtimer_gtimer.c +++ b/src/gtimer/gtimer_gtimer.c @@ -196,7 +196,7 @@ void gtimerStop(GTimer *pt) { gfxMutexEnter(&mutex); if (pt->flags & GTIMER_FLG_SCHEDULED) { // Cancel it! - if (pt->next == pt->prev) + if (pt->next == pt) pTimerHead = 0; else { pt->next->prev = pt->prev;