GCS_MAVLink: only call message handler for our own messages

This commit is contained in:
Andrew Tridgell 2014-12-10 14:02:57 +11:00 committed by Randy Mackay
parent 11f88f0f5d
commit aa88ba4158
1 changed files with 3 additions and 1 deletions

View File

@ -908,7 +908,9 @@ GCS_MAVLINK::update(void (*run_cli)(AP_HAL::UARTDriver *))
if (msg.msgid != MAVLINK_MSG_ID_RADIO && msg.msgid != MAVLINK_MSG_ID_RADIO_STATUS) {
mavlink_active |= (1U<<chan);
}
handleMessage(&msg);
if (!routing.check_and_forward(chan, &msg)) {
handleMessage(&msg);
}
}
}