mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 08:43:34 +08:00
only send autopilot capabilities blindly for serial connection
This commit is contained in:
@@ -1636,7 +1636,7 @@ Mavlink::task_main(int argc, char *argv[])
|
||||
LL_APPEND(_mavlink_instances, this);
|
||||
|
||||
/* if the protocol is serial, we send the system version blindly */
|
||||
if (get_protocol() != SERIAL) {
|
||||
if (get_protocol() == SERIAL) {
|
||||
send_autopilot_capabilites();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user