AP_InertialSensor: disable kill IMUs with HAL_MINIMIZE_FEATURES

This commit is contained in:
Andrew Tridgell 2019-07-07 18:05:51 +10:00
parent 2208689893
commit 8e5c0fa32b

View File

@ -2045,6 +2045,7 @@ AP_InertialSensor::Gyro_Calibration_Timing AP_InertialSensor::gyro_calibration_t
return (Gyro_Calibration_Timing)_gyro_cal_timing.get();
}
#if !HAL_MINIMIZE_FEATURES
/*
update IMU kill mask, used for testing IMU failover
*/
@ -2067,6 +2068,7 @@ void AP_InertialSensor::kill_imu(uint8_t imu_idx, bool kill_it)
imu_kill_mask &= ~(1U<<imu_idx);
}
}
#endif // HAL_MINIMIZE_FEATURES
namespace AP {