From 449f2667f8d85a86c6a18b2492c2238f4bc8d151 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 19 Jul 2022 08:13:33 -1000 Subject: [PATCH] Don't switch ROVER to BASE by changing base parameter in Serial Config --- Firmware/RTK_Surveyor/menuMain.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Firmware/RTK_Surveyor/menuMain.ino b/Firmware/RTK_Surveyor/menuMain.ino index 2ebaa1422..3bcc70443 100644 --- a/Firmware/RTK_Surveyor/menuMain.ino +++ b/Firmware/RTK_Surveyor/menuMain.ino @@ -94,7 +94,8 @@ void menuMain() if (online.gnss == true) i2cGNSS.saveConfiguration(); //Save the current settings to flash and BBR on the ZED-F9P - if (restartBase == true) + //Reboot as base only if currently operating as a base station + if (restartBase && (systemState >= STATE_BASE_NOT_STARTED) && (systemState < STATE_BUBBLE_LEVEL)) { restartBase = false; requestChangeState(STATE_BASE_NOT_STARTED); //Restart base upon exit for latest changes to take effect