From 82d77fe014b23d58c69d3f00f0c76d7807aaa6d6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Jan 2020 08:57:28 +1100 Subject: [PATCH] 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 --- libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.h b/libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.h index 6f28780d8f..a8ecd340a3 100644 --- a/libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.h +++ b/libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.h @@ -82,7 +82,7 @@ class AP_UAVCAN_DNA_Server //Look in the storage and check if there's a valid Server Record there bool isValidNodeDataAvailable(uint8_t node_id); - HAL_Semaphore_Recursive sem; + HAL_Semaphore sem; public: AP_UAVCAN_DNA_Server(StorageAccess _storage) : storage(_storage) {}