From 726efb9cf2bd53798cb449000e01242927d74c91 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 5 Oct 2022 12:00:38 +1100 Subject: [PATCH] AP_Compass: correct is_calibrating check before this we only ever looked at the first backend --- libraries/AP_Compass/AP_Compass_Calibration.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Compass/AP_Compass_Calibration.cpp b/libraries/AP_Compass/AP_Compass_Calibration.cpp index 24548fae58..27db528c35 100644 --- a/libraries/AP_Compass/AP_Compass_Calibration.cpp +++ b/libraries/AP_Compass/AP_Compass_Calibration.cpp @@ -334,7 +334,9 @@ bool Compass::is_calibrating() const case CompassCalibrator::Status::FAILED: case CompassCalibrator::Status::BAD_ORIENTATION: case CompassCalibrator::Status::BAD_RADIUS: - break; + // this backend isn't calibrating, + // but maybe the next one is: + continue; case CompassCalibrator::Status::WAITING_TO_START: case CompassCalibrator::Status::RUNNING_STEP_ONE: case CompassCalibrator::Status::RUNNING_STEP_TWO: