mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +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 (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