aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtimer/gtimer_gtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtimer/gtimer_gtimer.c')
-rw-r--r--src/gtimer/gtimer_gtimer.c2
1 files changed, 1 insertions, 1 deletions
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;