AP_HAL_PX4: use HAL_SEMAPHORE_BLOCK_FOREVER macro

This commit is contained in:
Peter Barker 2017-05-02 16:07:13 +10:00 committed by Randy Mackay
parent c78f3b9e78
commit 7ce353e652

View File

@ -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();
} }