Tracker: always call load_all

this ensures defaults file works on first start after erase
This commit is contained in:
Andrew Tridgell 2016-01-07 09:32:32 +11:00 committed by Grant Morphett
parent 3dd72e51de
commit d8b308d79d
1 changed files with 5 additions and 5 deletions

View File

@ -294,10 +294,10 @@ void Tracker::load_parameters(void)
// save the current format version
g.format_version.set_and_save(Parameters::k_format_version);
hal.console->println_P(PSTR("done."));
} else {
uint32_t before = hal.scheduler->micros();
// Load all auto-loaded EEPROM variables
AP_Param::load_all();
hal.console->printf_P(PSTR("load_all took %luus\n"), (unsigned long)(hal.scheduler->micros() - before));
}
uint32_t before = hal.scheduler->micros();
// Load all auto-loaded EEPROM variables
AP_Param::load_all();
hal.console->printf_P(PSTR("load_all took %luus\n"), (unsigned long)(hal.scheduler->micros() - before));
}