Skip to content

Commit 16c6136

Browse files
committed
Add missing defaultsApplied
This was preventing the updated enableExtCorrRadio from being saved, now that constellation_ etc. is processed first
1 parent 68276cf commit 16c6136

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Firmware/RTK_Everywhere/menuMessages.ino

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,16 @@ void checkGNSSArrayDefaults()
553553
if (present.gnss_zedf9p)
554554
{
555555
if (settings.dynamicModel == 254)
556+
{
557+
defaultsApplied = true;
556558
settings.dynamicModel = DYN_MODEL_PORTABLE;
559+
}
557560

558561
if (settings.enableExtCorrRadio == 254)
562+
{
563+
defaultsApplied = true;
559564
settings.enableExtCorrRadio = true;
565+
}
560566

561567
if (settings.ubxMessageRates[0] == 254)
562568
{
@@ -593,10 +599,16 @@ void checkGNSSArrayDefaults()
593599
else if (present.gnss_um980)
594600
{
595601
if (settings.dynamicModel == 254)
602+
{
603+
defaultsApplied = true;
596604
settings.dynamicModel = UM980_DYN_MODEL_SURVEY;
605+
}
597606

598607
if (settings.enableExtCorrRadio == 254)
608+
{
609+
defaultsApplied = true;
599610
settings.enableExtCorrRadio = false;
611+
}
600612

601613
if (settings.um980Constellations[0] == 254)
602614
{
@@ -640,10 +652,16 @@ void checkGNSSArrayDefaults()
640652
else if (present.gnss_mosaicX5)
641653
{
642654
if (settings.dynamicModel == 254)
655+
{
656+
defaultsApplied = true;
643657
settings.dynamicModel = MOSAIC_DYN_MODEL_QUASISTATIC;
658+
}
644659

645660
if (settings.enableExtCorrRadio == 254)
661+
{
662+
defaultsApplied = true;
646663
settings.enableExtCorrRadio = true;
664+
}
647665

648666
if (settings.mosaicConstellations[0] == 254)
649667
{
@@ -701,7 +719,10 @@ void checkGNSSArrayDefaults()
701719
else if (present.gnss_lg290p)
702720
{
703721
if (settings.enableExtCorrRadio == 254)
722+
{
723+
defaultsApplied = true;
704724
settings.enableExtCorrRadio = false;
725+
}
705726

706727
if (settings.lg290pConstellations[0] == 254)
707728
{

0 commit comments

Comments
 (0)