mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 13:43:35 +08:00
Nuttx Upgrade:Adds sem_setprotocol
This commit is contained in:
committed by
Lorenz Meier
parent
8610eced57
commit
c9f10107c0
@@ -171,6 +171,8 @@ int test_dataman(int argc, char *argv[])
|
||||
av[0] = a;
|
||||
av[1] = 0;
|
||||
px4_sem_init(sems + i, 1, 0);
|
||||
/* sems use case is a signal */
|
||||
px4_sem_setprotocol(&sems, SEM_PRIO_NONE);
|
||||
|
||||
/* start the task */
|
||||
if ((task = px4_task_spawn_cmd("dataman", SCHED_DEFAULT, SCHED_PRIORITY_MAX - 5, 2048, task_main, (void *)av)) <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user