UAVCAN hardpoint driver: fixed mutex lock/unlock

This commit is contained in:
Pavel Kirienko
2016-03-14 09:07:46 +01:00
committed by Lorenz Meier
parent 6a06c59c09
commit 7b83e828b8
+1 -1
View File
@@ -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