mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -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;
|
callback->next_usec += callback->period_usec;
|
||||||
}
|
}
|
||||||
// call it with semaphore held
|
// call it with semaphore held
|
||||||
if (binfo->semaphore.take(0)) {
|
if (binfo->semaphore.take(HAL_SEMAPHORE_BLOCK_FOREVER)) {
|
||||||
callback->cb();
|
callback->cb();
|
||||||
binfo->semaphore.give();
|
binfo->semaphore.give();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user