Skip to content

Commit

Permalink
AP_HAL_PX4: use HAL_SEMAPHORE_BLOCK_FOREVER macro
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and rmackay9 committed May 8, 2017
1 parent c78f3b9 commit 7ce353e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_PX4/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7ce353e

Please sign in to comment.