Skip to content

Commit 5f7d613

Browse files
committed
restartRover after enabling / disabling PointPerfect corrections
1 parent ea0e4ff commit 5f7d613

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ uint32_t triggerAccEst; // Global copy - Accuracy estimate in nanoseconds
695695
bool firstPowerOn = true; // After boot, apply new settings to ZED if the user switches between base or rover
696696
unsigned long splashStart; // Controls how long the splash is displayed for. Currently min of 2s.
697697
bool restartBase; // If the user modifies any NTRIP Server settings, we need to restart the base
698-
bool restartRover; // If the user modifies any NTRIP Client settings, we need to restart the rover
698+
bool restartRover; // If the user modifies any NTRIP Client or PointPerfect settings, we need to restart the rover
699699

700700
unsigned long startTime; // Used for checking longest-running functions
701701
bool lbandCorrectionsReceived; // Used to display L-Band SIV icon when corrections are successfully decrypted

Firmware/RTK_Everywhere/menuGNSS.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// Update rate, constellations, etc
33
void menuGNSS()
44
{
5-
restartRover = false; // If user modifies any NTRIP settings, we need to restart the rover
5+
// If user modifies any NTRIP settings etc., we need to restart the rover with "restartRover = true;""
6+
// But, don't set "restartRover = false;" here as that may prevent a restart requested by menuPointPerfect
7+
// for example...
68

79
while (1)
810
{

Firmware/RTK_Everywhere/menuPP.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,7 @@ void menuPointPerfect()
14851485
if (incoming == 1)
14861486
{
14871487
settings.enablePointPerfectCorrections ^= 1;
1488+
restartRover = true; // Require a rover restart to enable / disable RTCM for PPL
14881489
}
14891490

14901491
else if (incoming == 2 && pointPerfectIsEnabled())

0 commit comments

Comments
 (0)