mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +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
|
@ -38,7 +38,7 @@ int main(void)
|
|||
systemInit();
|
||||
initPrintfSupport();
|
||||
|
||||
checkFirstTime(false);
|
||||
ensureEEPROMContainsValidData();
|
||||
readEEPROM();
|
||||
|
||||
// configure power ADC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue