mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_UAVCAN: 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
e7f200f623
commit
82d77fe014
@ -82,7 +82,7 @@ class AP_UAVCAN_DNA_Server
|
|||||||
//Look in the storage and check if there's a valid Server Record there
|
//Look in the storage and check if there's a valid Server Record there
|
||||||
bool isValidNodeDataAvailable(uint8_t node_id);
|
bool isValidNodeDataAvailable(uint8_t node_id);
|
||||||
|
|
||||||
HAL_Semaphore_Recursive sem;
|
HAL_Semaphore sem;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AP_UAVCAN_DNA_Server(StorageAccess _storage) : storage(_storage) {}
|
AP_UAVCAN_DNA_Server(StorageAccess _storage) : storage(_storage) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user