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
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ void gtimerStart(GTimer *pt, GTimerFunction fn, void *param, bool_t periodic, de
|
||||||
|
|
||||||
// Start our thread if not already going
|
// Start our thread if not already going
|
||||||
if (!hThread) {
|
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
|
if (hThread) {gfxThreadClose(hThread);} // We never really need the handle again
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue