GCS_MAVLink: routing: do not process our own packets locally

returning true from this method means we will process the packets locally.

If that message changes the vehicle state that could be bad.
This commit is contained in:
Peter Barker 2023-03-17 13:20:34 +11:00 committed by Andrew Tridgell
parent d05b598ce5
commit 67bb7417ec
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ bool MAVLink_routing::check_and_forward(GCS_MAVLINK &in_link, const mavlink_mess
// incorrect serial configuration.
if (msg.sysid == mavlink_system.sysid &&
msg.compid == mavlink_system.compid) {
return true;
return false;
}
// learn new routes including private channels