From 42d6298dbf9ae05efd64e42254bd25876e35e381 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 13 Mar 2025 07:55:06 +1300 Subject: [PATCH] commander: fix accel sensor present flag This must have been a copy paste mistake. --- .../HealthAndArmingChecks/checks/accelerometerCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/HealthAndArmingChecks/checks/accelerometerCheck.cpp b/src/modules/commander/HealthAndArmingChecks/checks/accelerometerCheck.cpp index c7e0684dd8..187a4596e9 100644 --- a/src/modules/commander/HealthAndArmingChecks/checks/accelerometerCheck.cpp +++ b/src/modules/commander/HealthAndArmingChecks/checks/accelerometerCheck.cpp @@ -62,7 +62,7 @@ void AccelerometerChecks::checkAndReport(const Context &context, Report &reporte is_calibration_valid = (calibration::FindCurrentCalibrationIndex("ACC", accel_data.device_id) >= 0); } - reporter.setIsPresent(health_component_t::gyro); + reporter.setIsPresent(health_component_t::accel); } const bool is_sensor_ok = is_valid && is_calibration_valid;