mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Clear reset reason also upon button initiated EEPROM reset
This commit is contained in:
parent
3857f6cb75
commit
b33c671e3d
1 changed files with 1 additions and 0 deletions
|
@ -443,6 +443,7 @@ void init(void)
|
|||
if (bothButtonsHeld) {
|
||||
if (--secondsRemaining == 0) {
|
||||
resetEEPROM();
|
||||
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_NONE);
|
||||
systemReset();
|
||||
}
|
||||
delay(1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue