AP_Periph: set defualt format version

This commit is contained in:
Iampete1 2022-07-05 02:58:18 +01:00 committed by Andrew Tridgell
parent ff103e309e
commit 18351186db

View File

@ -472,6 +472,7 @@ void AP_Periph_FW::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);
} }
g.format_version.set_default(Parameters::k_format_version);
// Load all auto-loaded EEPROM variables // Load all auto-loaded EEPROM variables
AP_Param::load_all(); AP_Param::load_all();