From 7b83e828b8996940e6679f17b2e1752c7278a341 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Tue, 2 Feb 2016 00:53:59 +0300 Subject: [PATCH] UAVCAN hardpoint driver: fixed mutex lock/unlock --- src/modules/uavcan/uavcan_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/uavcan/uavcan_main.cpp b/src/modules/uavcan/uavcan_main.cpp index 7822908e84..1b63741dbe 100644 --- a/src/modules/uavcan/uavcan_main.cpp +++ b/src/modules/uavcan/uavcan_main.cpp @@ -1226,7 +1226,7 @@ void UavcanNode::hardpoint_controller_set(uint8_t hardpoint_id, uint16_t command { (void)pthread_mutex_lock(&_node_mutex); _hardpoint_controller.set_command(hardpoint_id, command); - (void)pthread_mutex_lock(&_node_mutex); + (void)pthread_mutex_unlock(&_node_mutex); } /* * App entry point