mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Prevent calls to presistent object functions for unsupported MCU
Fixes for #8619
This commit is contained in:
parent
924c40a50d
commit
e4c357a02b
3 changed files with 6 additions and 1 deletions
|
@ -443,7 +443,9 @@ void init(void)
|
|||
if (bothButtonsHeld) {
|
||||
if (--secondsRemaining == 0) {
|
||||
resetEEPROM();
|
||||
#ifdef USE_PERSISTENT_OBJECTS
|
||||
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_NONE);
|
||||
#endif
|
||||
systemReset();
|
||||
}
|
||||
delay(1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue