From 0ca45059acad2a5b7e16156d94fc176e37138933 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Jan 2020 08:57:23 +1100 Subject: [PATCH] AP_Compass: 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_Compass/AP_Compass_Backend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Compass/AP_Compass_Backend.h b/libraries/AP_Compass/AP_Compass_Backend.h index 14ca416353..43ad7ff8d2 100644 --- a/libraries/AP_Compass/AP_Compass_Backend.h +++ b/libraries/AP_Compass/AP_Compass_Backend.h @@ -112,7 +112,7 @@ protected: Compass &_compass; // semaphore for access to shared frontend data - HAL_Semaphore_Recursive _sem; + HAL_Semaphore _sem; // Check that the compass field is valid by using a mean filter on the vector length bool field_ok(const Vector3f &field);