only send autopilot capabilities blindly for serial connection

This commit is contained in:
Roman
2015-06-15 18:03:05 +02:00
committed by Lorenz Meier
parent 9745d16905
commit 75c1588241
+1 -1
View File
@@ -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();
}