From 83cdbf4fe1da99b9b788afa5abb46444420bf0b7 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 26 Oct 2015 15:13:34 +0100 Subject: Fixing gfxThreadCreate() call for the GTIMER thread because not all GOS implementations actually create a stack when using DECLARE_THREAD_STACK (eg. the CMSIS RTOS port) --- src/gtimer/gtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c index 1759ce4d..b666eec2 100644 --- a/src/gtimer/gtimer.c +++ b/src/gtimer/gtimer.c @@ -139,7 +139,7 @@ void gtimerStart(GTimer *pt, GTimerFunction fn, void *param, bool_t periodic, de // Start our thread if not already going if (!hThread) { - hThread = gfxThreadCreate(waTimerThread, sizeof(waTimerThread), GTIMER_THREAD_PRIORITY, GTimerThreadHandler, 0); + hThread = gfxThreadCreate(waTimerThread, GTIMER_THREAD_WORKAREA_SIZE, GTIMER_THREAD_PRIORITY, GTimerThreadHandler, 0); if (hThread) {gfxThreadClose(hThread);} // We never really need the handle again } -- cgit v1.2.3