aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtimer
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtimer')
-rw-r--r--src/gtimer/gtimer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c
index f84cad22..e22c3484 100644
--- a/src/gtimer/gtimer.c
+++ b/src/gtimer/gtimer.c
@@ -29,13 +29,14 @@ static DECLARE_THREAD_STACK(waTimerThread, GTIMER_THREAD_WORKAREA_SIZE);
/*===========================================================================*/
static DECLARE_THREAD_FUNCTION(GTimerThreadHandler, arg) {
- (void)arg;
GTimer *pt;
systemticks_t tm;
systemticks_t nxtTimeout;
systemticks_t lastTime;
GTimerFunction fn;
void *param;
+
+ (void)arg;
nxtTimeout = TIME_INFINITE;
lastTime = 0;
@@ -108,7 +109,8 @@ static DECLARE_THREAD_FUNCTION(GTimerThreadHandler, arg) {
lastTime = tm;
gfxMutexExit(&mutex);
}
- return 0;
+
+ THREAD_RETURN(0);
}
void _gtimerInit(void)