mirror of https://github.com/ArduPilot/ardupilot
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
This commit is contained in:
parent
322bad3fd9
commit
0ca45059ac
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue