Skip to content

Commit 09c3792

Browse files
committed
Check state of survey to reduce startup time.
1 parent b87de12 commit 09c3792

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Firmware/RTK_Surveyor/Rover.ino

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ bool configureUbloxModuleRover()
88
//Survey mode is only available on ZED-F9P modules
99
if (zedModuleType == PLATFORM_F9P)
1010
{
11-
response = i2cGNSS.disableSurveyMode(maxWait); //Disable survey
12-
if (response == false)
13-
Serial.println(F("Disable Survey failed"));
11+
if (i2cGNSS.getSurveyInActive(100) == true)
12+
{
13+
response = i2cGNSS.disableSurveyMode(maxWait); //Disable survey
14+
if (response == false)
15+
Serial.println(F("Disable Survey failed"));
16+
}
1417
}
1518

1619
// Set dynamic model

0 commit comments

Comments
 (0)