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
907a680a3b
commit
f17ec284f7
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue