From b45819dd97c39dcded6f2fb50c297aeb5d15e035 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 9 Apr 2014 14:30:27 +1000 Subject: [PATCH] AntennaTracker: don't use EEPROM home if a startup home is set in parameters --- Tools/AntennaTracker/system.pde | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/AntennaTracker/system.pde b/Tools/AntennaTracker/system.pde index 03c6be0ae8..75ea860f12 100644 --- a/Tools/AntennaTracker/system.pde +++ b/Tools/AntennaTracker/system.pde @@ -83,7 +83,9 @@ static void init_tracker() current_loc.lng = g.start_longitude * 1.0e7f; // see if EEPROM has a default location as well - get_home_eeprom(current_loc); + if (current_loc.lat == 0 && current_loc.lng == 0) { + get_home_eeprom(current_loc); + } gcs_send_text_P(SEVERITY_LOW,PSTR("\nReady to track.")); hal.scheduler->delay(1000); // Why????