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)
This commit is contained in:
parent
ed67f4832e
commit
83cdbf4fe1
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user