mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 03:23:34 +08:00
fixed mutex in hardpoint_controler_set()
This commit is contained in:
@@ -1224,7 +1224,9 @@ void UavcanNode::shrink()
|
||||
|
||||
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);
|
||||
}
|
||||
/*
|
||||
* App entry point
|
||||
|
||||
Reference in New Issue
Block a user