mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Removing Custom Defaults (#12425)
This commit is contained in:
parent
68136910d0
commit
ee77239db1
48 changed files with 155 additions and 552 deletions
|
@ -408,7 +408,7 @@ void init(void)
|
|||
#endif
|
||||
|
||||
if (!readSuccess || !isEEPROMVersionValid() || strncasecmp(systemConfig()->boardIdentifier, TARGET_BOARD_IDENTIFIER, sizeof(TARGET_BOARD_IDENTIFIER))) {
|
||||
resetEEPROM(false);
|
||||
resetEEPROM();
|
||||
}
|
||||
|
||||
systemState |= SYSTEM_STATE_CONFIG_LOADED;
|
||||
|
@ -463,7 +463,7 @@ void init(void)
|
|||
bothButtonsHeld = buttonAPressed() && buttonBPressed();
|
||||
if (bothButtonsHeld) {
|
||||
if (--secondsRemaining == 0) {
|
||||
resetEEPROM(false);
|
||||
resetEEPROM();
|
||||
#ifdef USE_PERSISTENT_OBJECTS
|
||||
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_NONE);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue