mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 04:53:34 +08:00
UAVCAN hardpoint driver: fixed mutex lock/unlock
This commit is contained in:
committed by
Lorenz Meier
parent
6a06c59c09
commit
7b83e828b8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user