mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 22:13:33 +08:00
UAVCAN: Adjust stack size to platform
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user