Skip to content

Commit 1786308

Browse files
committed
Only update settings.antennaPhaseCenter_mm if other defaults have been applied
1 parent f9d1f85 commit 1786308

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Firmware/RTK_Everywhere/menuMessages.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,11 +836,10 @@ void checkGNSSArrayDefaults()
836836
}
837837
#endif // COMPILE_LG290P
838838

839-
// If the antennaPhaseCenter_mm is not set, override with default
839+
// If defaults have been applied, override antennaPhaseCenter_mm with default
840840
// (This was in beginSystemState - for the Torch / UM980 only. Weird...)
841-
if (settings.antennaPhaseCenter_mm == 0.0)
841+
if (defaultsApplied)
842842
{
843-
defaultsApplied = true;
844843
settings.antennaPhaseCenter_mm = present.antennaPhaseCenter_mm;
845844
}
846845

0 commit comments

Comments
 (0)