From 85e5de15c4d2b3e0d1272ee2956948396c6c90fa Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 29 Apr 2017 10:07:39 +1000 Subject: [PATCH] AP_HAL_VRBRAIN: use HAL_SEMAPHORE_BLOCK_FOREVER --- libraries/AP_HAL_VRBRAIN/Semaphores.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_VRBRAIN/Semaphores.cpp b/libraries/AP_HAL_VRBRAIN/Semaphores.cpp index fa35f2beed..ca29566930 100644 --- a/libraries/AP_HAL_VRBRAIN/Semaphores.cpp +++ b/libraries/AP_HAL_VRBRAIN/Semaphores.cpp @@ -15,7 +15,7 @@ bool Semaphore::give() bool Semaphore::take(uint32_t timeout_ms) { - if (timeout_ms == 0) { + if (timeout_ms == HAL_SEMAPHORE_BLOCK_FOREVER) { return pthread_mutex_lock(&_lock) == 0; } if (take_nonblocking()) {