void checkFirstTime(bool reset) { // check the EEPROM integrity before resetting values if (!validEEPROM() || reset) { resetConf(); // no need to memcpy profile again, we just did it in resetConf() above writeEEPROM(0, false); } }
void resetEEPROM(void) { resetConf(); writeEEPROM(); }
static void cliDefaults(char *cmdline) { resetConf(); cliPrint("Resetting to defaults...\r\n"); delay(10); }
void checkFirstTime(bool reset) { if (!validEEPROM() || reset) resetConf(); // check the EEPROM integrity }
void checkFirstTime(bool reset) { // check the EEPROM integrity before resetting values if (!validEEPROM() || reset) resetConf(); }