From 8ffd92ce470f2d7aa19ee878cea72a7775fe5ace Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 15 Mar 2022 13:47:40 +1300 Subject: [PATCH] telemetry: only use param fallback for PX4 --- src/mavsdk/plugins/telemetry/telemetry_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mavsdk/plugins/telemetry/telemetry_impl.cpp b/src/mavsdk/plugins/telemetry/telemetry_impl.cpp index 26a105748a..48f57fbeaa 100644 --- a/src/mavsdk/plugins/telemetry/telemetry_impl.cpp +++ b/src/mavsdk/plugins/telemetry/telemetry_impl.cpp @@ -2739,7 +2739,7 @@ void TelemetryImpl::check_calibration() }, this); - } else { + } else if (_parent->compatibility_mode() == System::CompatibilityMode::Px4) { _parent->get_param_int_async( std::string("CAL_GYRO0_ID"), [this](MAVLinkParameters::Result result, int32_t value) { @@ -2838,7 +2838,7 @@ void TelemetryImpl::process_parameter_update(const std::string& name) }, this); } - } else { + } else if (_parent->compatibility_mode() == System::CompatibilityMode::Px4) { if (name.compare("CAL_GYRO0_ID") == 0) { _parent->get_param_int_async( std::string("CAL_GYRO0_ID"),