Browse Source

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
zr-v5.1
Andrew Tridgell 5 years ago
parent
commit
1fac578b37
  1. 2
      libraries/AP_Airspeed/AP_Airspeed_Backend.h

2
libraries/AP_Airspeed/AP_Airspeed_Backend.h

@ -46,7 +46,7 @@ protected: @@ -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);

Loading…
Cancel
Save