forked from Archive/PX4-Autopilot
Fix formatting
This commit is contained in:
parent
9f5469ab1f
commit
be3863d99f
|
@ -174,6 +174,7 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
|
|||
}
|
||||
|
||||
#ifndef __PX4_DARWIN
|
||||
|
||||
if (stack_size < PTHREAD_STACK_MIN) {
|
||||
stack_size = PTHREAD_STACK_MIN;
|
||||
}
|
||||
|
@ -184,6 +185,7 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
|
|||
PX4_ERR("pthread_attr_setstacksize to %d returned error (%d)", stack_size, rv);
|
||||
return (rv < 0) ? rv : -rv;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
rv = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
|
||||
|
|
Loading…
Reference in New Issue