From e7f200f6232ce1ca5d86af9a752cdc9f9a0438d2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Jan 2020 08:57:28 +1100 Subject: [PATCH] AP_Stats: 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_Stats/AP_Stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Stats/AP_Stats.h b/libraries/AP_Stats/AP_Stats.h index e20ad0d597..cfdbf56127 100644 --- a/libraries/AP_Stats/AP_Stats.h +++ b/libraries/AP_Stats/AP_Stats.h @@ -67,7 +67,7 @@ private: void update_flighttime(); void update_runtime(); - HAL_Semaphore_Recursive sem; + HAL_Semaphore sem; }; namespace AP {