mavlink: always forward messages to/from USB

Previously, it was not possible to enable forwarding of messages to/from
teh USB instance because it does not have a param for it, like the
serial instances have.

With this commit, we change the default to always set forwarding on for
the USB instance as that is likely desired.

Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
Julian Oes 2022-12-12 11:27:39 +13:00 committed by Daniel Agar
parent 0446292c75
commit b1fc0ca0d0
1 changed files with 3 additions and 0 deletions

View File

@ -2119,6 +2119,9 @@ Mavlink::task_main(int argc, char *argv[])
_ftp_on = true;
_is_usb_uart = true;
// Always forward messages to/from the USB instance.
_forwarding_on = true;
set_telemetry_status_type(telemetry_status_s::LINK_TYPE_USB);
}