mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Cleanup EEPROM reset and validation methods so that it is obvious what
the code is doing. There are now no EEPROM read/write/reset/verify methods that take any arguments which removes magic boolean variables from method signatures. This also removes duplicate code in the cliDefaults and cliSave commands which results in smaller code also also due to the deduplication of a reboot message.
This commit is contained in:
parent
a012cb1c82
commit
bd95c38ff0
5 changed files with 39 additions and 29 deletions
|
@ -601,8 +601,10 @@ static void evaluateCommand(void)
|
|||
headSerialReply(0);
|
||||
break;
|
||||
case MSP_RESET_CONF:
|
||||
if (!f.ARMED)
|
||||
checkFirstTime(true);
|
||||
if (!f.ARMED) {
|
||||
resetEEPROM();
|
||||
readEEPROM();
|
||||
}
|
||||
headSerialReply(0);
|
||||
break;
|
||||
case MSP_ACC_CALIBRATION:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue