Example #1
0
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);
    }
}
Example #2
0
void resetEEPROM(void)
{
    resetConf();
    writeEEPROM();
}
Example #3
0
static void cliDefaults(char *cmdline)
{
    resetConf();
    cliPrint("Resetting to defaults...\r\n");
    delay(10);
}
Example #4
0
void checkFirstTime(bool reset)
{
    if (!validEEPROM() || reset) resetConf();                                             // check the EEPROM integrity
}
Example #5
0
void checkFirstTime(bool reset)
{
    // check the EEPROM integrity before resetting values
    if (!validEEPROM() || reset)
        resetConf();
}