Skip to content

Commit fa292f2

Browse files
authored
Merge pull request #236 from LeeLeahy2/rover-to-base
Don't switch ROVER to BASE by changing base parameter in Serial Config
2 parents d9591db + 449f266 commit fa292f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Firmware/RTK_Surveyor/menuMain.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ void menuMain()
9494
if (online.gnss == true)
9595
i2cGNSS.saveConfiguration(); //Save the current settings to flash and BBR on the ZED-F9P
9696

97-
if (restartBase == true)
97+
//Reboot as base only if currently operating as a base station
98+
if (restartBase && (systemState >= STATE_BASE_NOT_STARTED) && (systemState < STATE_BUBBLE_LEVEL))
9899
{
99100
restartBase = false;
100101
requestChangeState(STATE_BASE_NOT_STARTED); //Restart base upon exit for latest changes to take effect

0 commit comments

Comments
 (0)