Plane: remove fwd of unknown msg types

This commit is contained in:
Andrew Tridgell 2014-12-10 18:25:59 +11:00 committed by Randy Mackay
parent ade7f9e1a9
commit 12f0c49915
1 changed files with 0 additions and 13 deletions

View File

@ -1576,19 +1576,6 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
#endif
break;
default:
// forward unknown messages to the other link if there is one
for (uint8_t i=0; i<num_gcs; i++) {
if (gcs[i].initialised && i != (uint8_t)chan) {
mavlink_channel_t out_chan = (mavlink_channel_t)i;
// only forward if it would fit in the transmit buffer
if (comm_get_txspace(out_chan) > ((uint16_t)msg->len) + MAVLINK_NUM_NON_PAYLOAD_BYTES) {
_mavlink_resend_uart(out_chan, msg);
}
}
}
break;
} // end switch
} // end handle mavlink