Fix compile errors if USE_ACC is not defined

This commit is contained in:
Bruce Luckcuck 2019-11-19 18:23:01 -05:00
parent 881a256980
commit bb97f79406
1 changed files with 2 additions and 0 deletions

View File

@ -276,11 +276,13 @@ static void validateAndFixConfig(void)
buildAlignmentFromStandardAlignment(&gyroDeviceConfigMutable(1)->customAlignment, gyroDeviceConfig(1)->alignment);
#endif
#ifdef USE_ACC
if (accelerometerConfig()->accZero.values.roll != 0 ||
accelerometerConfig()->accZero.values.pitch != 0 ||
accelerometerConfig()->accZero.values.yaw != 0) {
accelerometerConfigMutable()->accZero.values.calibrationCompleted = 1;
}
#endif // USE_ACC
if (!(featureIsConfigured(FEATURE_RX_PARALLEL_PWM) || featureIsConfigured(FEATURE_RX_PPM) || featureIsConfigured(FEATURE_RX_SERIAL) || featureIsConfigured(FEATURE_RX_MSP) || featureIsConfigured(FEATURE_RX_SPI))) {
featureEnable(DEFAULT_RX_FEATURE);