AP_RCTelemetry: warn if Passthru miss-configured

Co-authored-by: Alessandro Apostoli <30294218+yaapu@users.noreply.github.com>
This commit is contained in:
Hwurzburg 2021-07-31 20:09:09 -05:00 committed by Andrew Tridgell
parent 54d92551d1
commit 89246739c4

View File

@ -94,6 +94,14 @@ void AP_CRSF_Telem::setup_custom_telemetry()
return;
}
// check if passthru already assigned
const int8_t frsky_port = AP::serialmanager().find_portnum(AP_SerialManager::SerialProtocol_FrSky_SPort_Passthrough,0);
if (frsky_port != -1) {
gcs().send_text(MAV_SEVERITY_CRITICAL, "CRSF: passthrough telemetry conflict on SERIAL%d",frsky_port);
_custom_telem.init_done = true;
return;
}
// we need crossfire firmware version
if (_crsf_version.pending) {
return;