diff --git a/Tools/AP_Periph/Parameters.cpp b/Tools/AP_Periph/Parameters.cpp index 6f7fcede15..2dfdfb7165 100644 --- a/Tools/AP_Periph/Parameters.cpp +++ b/Tools/AP_Periph/Parameters.cpp @@ -532,10 +532,8 @@ void AP_Periph_FW::load_parameters(void) { AP_Param::setup_sketch_defaults(); - if (!AP_Param::check_var_info()) { - hal.console->printf("Bad parameter table\n"); - AP_HAL::panic("Bad parameter table"); - } + AP_Param::check_var_info(); + if (!g.format_version.load() || g.format_version != Parameters::k_format_version) { // erase all parameters diff --git a/Tools/Replay/Replay.cpp b/Tools/Replay/Replay.cpp index 84c8cd96a1..3cebc73eb3 100644 --- a/Tools/Replay/Replay.cpp +++ b/Tools/Replay/Replay.cpp @@ -90,9 +90,8 @@ const AP_Param::Info ReplayVehicle::var_info[] = { void ReplayVehicle::load_parameters(void) { - if (!AP_Param::check_var_info()) { - AP_HAL::panic("Bad parameter table"); - } + AP_Param::check_var_info(); + StorageManager::erase(); AP_Param::erase_all(); // Load all auto-loaded EEPROM variables - also registers thread