mirror of https://github.com/ArduPilot/ardupilot
Tracker: always call load_all
this ensures defaults file works on first start after erase
This commit is contained in:
parent
3dd72e51de
commit
d8b308d79d
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue