Skip to content

Commit

Permalink
GCS_MAVLink: fixed addition to routing table
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge authored and rmackay9 committed Dec 11, 2014
1 parent 079158d commit fcf1782
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/GCS_MAVLink/MAVLink_routing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit fcf1782

Please sign in to comment.