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 Jun 22, 2022
1 parent d66a306 commit f69849f
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 @@ -2519,7 +2519,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 @@ -2618,7 +2618,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 f69849f

Please sign in to comment.