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
parent 907a680a3b
commit f17ec284f7
1 changed files with 5 additions and 5 deletions

View File

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