mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 11:53:33 +08:00
mavlink: channel ID allocation fixed
This commit is contained in:
@@ -877,8 +877,8 @@ MavlinkReceiver::receive_thread(void *arg)
|
||||
mavlink_message_t msg;
|
||||
|
||||
/* set thread name */
|
||||
char thread_name[18];
|
||||
sprintf(thread_name, "mavlink_uart_rcv_%d", _mavlink->get_channel());
|
||||
char thread_name[24];
|
||||
sprintf(thread_name, "mavlink_rcv_if%d", _mavlink->get_instance_id());
|
||||
prctl(PR_SET_NAME, thread_name, getpid());
|
||||
|
||||
_manual_sub = orb_subscribe(ORB_ID(manual_control_setpoint));
|
||||
|
||||
Reference in New Issue
Block a user