mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
Nuttx Upgrade:Adds sem_setprotocol
This commit is contained in:
1 parent
8610eced57
commit
c9f10107c0
11 files changed
+80
-14
No files matched your search
@@ -723,6 +723,12 @@ void Logger::run()
|
||||
memset(&timer_call, 0, sizeof(hrt_call));
|
||||
px4_sem_t timer_semaphore;
|
||||
px4_sem_init(&timer_semaphore, 0, 0);
|
||||
|
||||
/* timer_semaphore use case is a signal */
|
||||
|
||||
px4_sem_setprotocol(&timer_semaphore, SEM_PRIO_NONE);
|
||||
|
||||
|
||||
hrt_call_every(&timer_call, _log_interval, _log_interval, timer_callback, &timer_semaphore);
|
||||
|
||||
// check for new subscription data
|
||||
|
||||
Reference in new issue
Block a user