GCS_MAVLink: fixed addition to routing table

This commit is contained in:
Andrew Tridgell 2014-12-10 17:33:56 +11:00 committed by Randy Mackay
parent 079158d4b8
commit fcf17829cc

View File

@ -92,7 +92,8 @@ void MAVLink_routing::learn_route(mavlink_channel_t in_channel, const mavlink_me
uint8_t i;
for (i=0; i<num_routes; i++) {
if (routes[i].sysid == msg->sysid &&
routes[i].compid == msg->compid) {
routes[i].compid == msg->compid &&
routes[i].channel == in_channel) {
break;
}
}