From 1fac578b372c8f62b027ffdbe83e19b8de169a61 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Jan 2020 08:57:22 +1100 Subject: [PATCH] AP_Airspeed: make all semaphores recursive the cost is very similar and this prevents an easy coding error which can occur on less used code paths --- libraries/AP_Airspeed/AP_Airspeed_Backend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Airspeed/AP_Airspeed_Backend.h b/libraries/AP_Airspeed/AP_Airspeed_Backend.h index 8e0b51bce9..73248d6802 100644 --- a/libraries/AP_Airspeed/AP_Airspeed_Backend.h +++ b/libraries/AP_Airspeed/AP_Airspeed_Backend.h @@ -46,7 +46,7 @@ protected: } // semaphore for access to shared frontend data - HAL_Semaphore_Recursive sem; + HAL_Semaphore sem; float get_airspeed_ratio(void) const { return frontend.get_airspeed_ratio(instance);