UAVCAN: Adjust stack size to platform

This commit is contained in:
Lorenz Meier 2016-09-07 22:07:09 +02:00
parent 29d33a12dc
commit 7d7e40f594
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ int UavcanServers::start(uavcan::INode &main_node)
pthread_attr_init(&tattr);
(void)pthread_attr_getschedparam(&tattr, &param);
tattr.stacksize = StackSize;
tattr.stacksize = PX4_STACK_ADJUSTED(StackSize);
param.sched_priority = Priority;
if (pthread_attr_setschedparam(&tattr, &param)) {
warnx("setting sched params failed");