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:
Andrew Tridgell 2020-01-19 08:57:23 +11:00
parent 322bad3fd9
commit 0ca45059ac
1 changed files with 1 additions and 1 deletions

View File

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