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:
Andrew Tridgell 2020-01-19 08:57:28 +11:00
parent e7f200f623
commit 82d77fe014

View File

@ -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) {}