mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Fix compile errors if USE_ACC is not defined
This commit is contained in:
parent
881a256980
commit
bb97f79406
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue