From fcf17829ccd7f11aa7fca9c228e1af46f90a4df4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 10 Dec 2014 17:33:56 +1100 Subject: [PATCH] GCS_MAVLink: fixed addition to routing table --- libraries/GCS_MAVLink/MAVLink_routing.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/MAVLink_routing.cpp b/libraries/GCS_MAVLink/MAVLink_routing.cpp index 76740c7a73..7c99200688 100644 --- a/libraries/GCS_MAVLink/MAVLink_routing.cpp +++ b/libraries/GCS_MAVLink/MAVLink_routing.cpp @@ -92,7 +92,8 @@ void MAVLink_routing::learn_route(mavlink_channel_t in_channel, const mavlink_me uint8_t i; for (i=0; isysid && - routes[i].compid == msg->compid) { + routes[i].compid == msg->compid && + routes[i].channel == in_channel) { break; } }