AP_Baro: 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 3bb7c0e937
commit 322bad3fd9
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ private:
AP_Int32 _baro_probe_ext;
// semaphore for API access from threads
HAL_Semaphore_Recursive _rsem;
HAL_Semaphore _rsem;
};
namespace AP {

View File

@ -30,7 +30,7 @@ protected:
void _copy_to_frontend(uint8_t instance, float pressure, float temperature);
// semaphore for access to shared frontend data
HAL_Semaphore_Recursive _sem;
HAL_Semaphore _sem;
virtual void update_healthy_flag(uint8_t instance);