1
0
Fork 0
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:
jflyper 2019-07-28 22:56:39 +09:00
parent 3857f6cb75
commit b33c671e3d

View file

@ -443,6 +443,7 @@ void init(void)
if (bothButtonsHeld) {
if (--secondsRemaining == 0) {
resetEEPROM();
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_NONE);
systemReset();
}
delay(1000);