Fixed an issue on FreeRTOS where thread stacks were being created too large
This commit is contained in:
parent
ee33f13f7e
commit
23ceb054fc
@ -30,6 +30,7 @@ FEATURE: Added justifyTop, justifyMiddle & justifyBottom text justification to G
|
||||
FEATURE: Added justifyWordWrap, justifyNoWordWrap text justification to GDISP (requires GDISP_NEED_TEXT_WORDWRAP)
|
||||
FEATURE: Added justifyPad, justifyNoPad text justification to GDISP
|
||||
FEATURE: Added GDISP_NEED_TEXT_BOXPADLR and GDISP_NEED_TEXT_BOXPADTB configuration options
|
||||
FIX: Fixed an issue on FreeRTOS where thread stacks were being created too large
|
||||
|
||||
|
||||
*** Release 2.7 ***
|
||||
|
@ -147,6 +147,9 @@ gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_
|
||||
gfxThreadHandle task;
|
||||
(void) stackarea;
|
||||
|
||||
// uGFX expresses stack size in bytes - FreeRTOS in "Stack Words"
|
||||
stacksz /= sizeof(StackType_t);
|
||||
|
||||
if (stacksz < configMINIMAL_STACK_SIZE)
|
||||
stacksz = configMINIMAL_STACK_SIZE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user