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
This commit is contained in:
Andrew Tridgell 2020-01-19 08:57:22 +11:00
parent 3b95b5e692
commit 1fac578b37

View File

@ -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);