From db159a43cc86cac7ca5d684cdc79d2afd1ba0c68 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 31 Dec 2021 06:40:23 -0800 Subject: [PATCH] test_dataman:Set SEM_PRIO_NONE on all semaphores --- src/systemcmds/tests/test_dataman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemcmds/tests/test_dataman.c b/src/systemcmds/tests/test_dataman.c index 94decf24f3..44fb747540 100644 --- a/src/systemcmds/tests/test_dataman.c +++ b/src/systemcmds/tests/test_dataman.c @@ -179,7 +179,7 @@ int test_dataman(int argc, char *argv[]) px4_sem_init(sems + i, 1, 0); /* sems use case is a signal */ - px4_sem_setprotocol(sems, SEM_PRIO_NONE); + px4_sem_setprotocol(sems + i, SEM_PRIO_NONE); /* start the task */ if ((task = px4_task_spawn_cmd("dataman", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT, 2048, task_main, av)) <= 0) {