Skip to content

Commit

Permalink
telemetry: only use param fallback for PX4
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Nov 22, 2022
1 parent 539f9bb commit 8ffd92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mavsdk/plugins/telemetry/telemetry_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 8ffd92c

Please sign in to comment.