AP_Avoidance: 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 1fac578b37
commit 3bb7c0e937
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ private:
AP_Float _warn_distance_z;
// multi-thread support for avoidance
HAL_Semaphore_Recursive _rsem;
HAL_Semaphore _rsem;
static AP_Avoidance *_singleton;
};