mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
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:
parent
3bb7c0e937
commit
322bad3fd9
@ -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 {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user