mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
FIX: Custom defaults - premature configuration (#12410)
This commit is contained in:
parent
60369bcf4f
commit
7c6bf79777
1 changed files with 4 additions and 1 deletions
|
@ -663,6 +663,9 @@ bool gyroInit(void)
|
||||||
detectedSensors[SENSOR_INDEX_GYRO] = gyro.gyroSensor2.gyroDev.gyroHardware;
|
detectedSensors[SENSOR_INDEX_GYRO] = gyro.gyroSensor2.gyroDev.gyroHardware;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_CUSTOM_DEFAULTS
|
||||||
|
eepromWriteRequired = eepromWriteRequired && systemConfig()->configurationState != CONFIGURATION_STATE_DEFAULTS_BARE;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (eepromWriteRequired) {
|
if (eepromWriteRequired) {
|
||||||
writeEEPROM();
|
writeEEPROM();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue