Fix compile errors if USE_ACC is not defined
This commit is contained in:
parent
881a256980
commit
bb97f79406
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue