forked from Archive/PX4-Autopilot
UAVCAN: Adjust stack size to platform
This commit is contained in:
parent
29d33a12dc
commit
7d7e40f594
|
@ -171,7 +171,7 @@ int UavcanServers::start(uavcan::INode &main_node)
|
|||
|
||||
pthread_attr_init(&tattr);
|
||||
(void)pthread_attr_getschedparam(&tattr, ¶m);
|
||||
tattr.stacksize = StackSize;
|
||||
tattr.stacksize = PX4_STACK_ADJUSTED(StackSize);
|
||||
param.sched_priority = Priority;
|
||||
if (pthread_attr_setschedparam(&tattr, ¶m)) {
|
||||
warnx("setting sched params failed");
|
||||
|
|
Loading…
Reference in New Issue