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