mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_HAL_PX4: use HAL_SEMAPHORE_BLOCK_FOREVER macro
This commit is contained in:
parent
c78f3b9e78
commit
7ce353e652
@ -63,7 +63,7 @@ void *DeviceBus::bus_thread(void *arg)
|
||||
callback->next_usec += callback->period_usec;
|
||||
}
|
||||
// call it with semaphore held
|
||||
if (binfo->semaphore.take(0)) {
|
||||
if (binfo->semaphore.take(HAL_SEMAPHORE_BLOCK_FOREVER)) {
|
||||
callback->cb();
|
||||
binfo->semaphore.give();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user