diff --git a/src/mavsdk/plugins/telemetry/telemetry_impl.cpp b/src/mavsdk/plugins/telemetry/telemetry_impl.cpp index 33d1310f7..570e223aa 100644 --- a/src/mavsdk/plugins/telemetry/telemetry_impl.cpp +++ b/src/mavsdk/plugins/telemetry/telemetry_impl.cpp @@ -2521,11 +2521,9 @@ std::pair TelemetryImpl::get_gps_ void TelemetryImpl::check_calibration() { - if (_system_impl->has_autopilot()) { - if (_system_impl->autopilot() == Autopilot::ArduPilot) { - // We need to ask for the home position from ArduPilot - request_home_position_async(); - } + if (_system_impl->has_autopilot() && _system_impl->autopilot() == Autopilot::ArduPilot) { + // We need to ask for the home position from ArduPilot + request_home_position_async(); } }