diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-01-03 18:41:38 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-01-03 18:41:38 +1000 |
commit | 476d11d599ec4862ae2191f606e10a85bb7c3c23 (patch) | |
tree | 545851566c3c28b3b79cff149d7e16744376d63a /src | |
parent | 9ddf7c42849229e041a27bb9d46cf16c37eaae05 (diff) | |
download | uGFX-476d11d599ec4862ae2191f606e10a85bb7c3c23.tar.gz uGFX-476d11d599ec4862ae2191f606e10a85bb7c3c23.tar.bz2 uGFX-476d11d599ec4862ae2191f606e10a85bb7c3c23.zip |
Fix serious bug in GTIMER.
Diffstat (limited to 'src')
-rw-r--r-- | src/gtimer/gtimer_gtimer.c | 2 |
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; |