From f17ec284f7c9e8d9282fba821f8f7786f0346829 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Jan 2016 09:32:32 +1100 Subject: [PATCH] Tracker: always call load_all this ensures defaults file works on first start after erase --- AntennaTracker/Parameters.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AntennaTracker/Parameters.cpp b/AntennaTracker/Parameters.cpp index e9339fc0ad..cc8cd3673d 100644 --- a/AntennaTracker/Parameters.cpp +++ b/AntennaTracker/Parameters.cpp @@ -302,10 +302,10 @@ void Tracker::load_parameters(void) // save the current format version g.format_version.set_and_save(Parameters::k_format_version); 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)); }