Fix serious bug in GTIMER.

ugfx_release_2.6
inmarket 2015-01-03 18:41:38 +10:00
parent 9ddf7c4284
commit 476d11d599
1 changed files with 1 additions and 1 deletions

View File

@ -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;