From 7ce353e652fa63558c87b8ca2ec87fb8f9aa6a23 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 2 May 2017 16:07:13 +1000 Subject: [PATCH] AP_HAL_PX4: use HAL_SEMAPHORE_BLOCK_FOREVER macro --- libraries/AP_HAL_PX4/Device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_PX4/Device.cpp b/libraries/AP_HAL_PX4/Device.cpp index e972e5c02ff4a8..d3686112430575 100644 --- a/libraries/AP_HAL_PX4/Device.cpp +++ b/libraries/AP_HAL_PX4/Device.cpp @@ -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(); }