From 476d11d599ec4862ae2191f606e10a85bb7c3c23 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 3 Jan 2015 18:41:38 +1000 Subject: [PATCH] Fix serious bug in GTIMER. --- src/gtimer/gtimer_gtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;