GCS_MAVLink: clarify packetReceive calling handlemessage checks
modules/libcanard/
This commit is contained in:
parent
ddab9455e8
commit
91c8d0b915
@ -1427,10 +1427,15 @@ void GCS_MAVLINK::packetReceived(const mavlink_status_t &status,
|
||||
cstatus->flags &= ~MAVLINK_STATUS_FLAG_OUT_MAVLINK1;
|
||||
}
|
||||
}
|
||||
if (routing.check_and_forward(chan, &msg) &&
|
||||
accept_packet(status, msg)) {
|
||||
handleMessage(&msg);
|
||||
if (!routing.check_and_forward(chan, &msg)) {
|
||||
// the routing code has indicated we should not handle this packet locally
|
||||
return;
|
||||
}
|
||||
if (!accept_packet(status, msg)) {
|
||||
// e.g. enforce-sysid says we shouldn't look at this packet
|
||||
return;
|
||||
}
|
||||
handleMessage(&msg);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user