Skip to content

Commit c71b4f5

Browse files
committed
Add inRoverMode guard for restartRover
1 parent d4e9f67 commit c71b4f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Everywhere/menuMain.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ void menuMain()
232232
{
233233

234234
// Reboot as base only if currently operating as a base station
235-
if (restartBase && inBaseMode() == true)
235+
if (restartBase == true && inBaseMode() == true)
236236
{
237237
restartBase = false;
238238
requestChangeState(STATE_BASE_NOT_STARTED); // Restart base upon exit for latest changes to take effect
239239
}
240240

241-
if (restartRover == true)
241+
if (restartRover == true && inRoverMode() == true)
242242
{
243243
restartRover = false;
244244
requestChangeState(STATE_ROVER_NOT_STARTED); // Restart rover upon exit for latest changes to take effect

0 commit comments

Comments
 (0)