Browse Source

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
zr-v5.1
Andrew Tridgell 5 years ago
parent
commit
0ca45059ac
  1. 2
      libraries/AP_Compass/AP_Compass_Backend.h

2
libraries/AP_Compass/AP_Compass_Backend.h

@ -112,7 +112,7 @@ protected:
Compass &_compass; Compass &_compass;
// semaphore for access to shared frontend data // 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 // Check that the compass field is valid by using a mean filter on the vector length
bool field_ok(const Vector3f &field); bool field_ok(const Vector3f &field);

Loading…
Cancel
Save