Skip to content

Commit b7f6584

Browse files
committed
Fixed TMODE is now overridden correctly at startup
1 parent 1d886b6 commit b7f6584

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

Firmware/RTK_Surveyor/Rover.ino

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ bool configureUbloxModuleRover()
55
bool response = true;
66
int maxWait = 2000;
77

8-
if (i2cGNSS.getSurveyInActive() == true || i2cGNSS.getSurveyInValid() == true)
9-
{
10-
response = i2cGNSS.disableSurveyMode(maxWait); //Disable survey
11-
if (response == false)
12-
Serial.println(F("Disable Survey failed"));
13-
}
8+
response = i2cGNSS.disableSurveyMode(maxWait); //Disable survey
9+
if (response == false)
10+
Serial.println(F("Disable Survey failed"));
1411

1512
// Set dynamic model
1613
if (i2cGNSS.getDynamicModel(maxWait) != DYN_MODEL_PORTABLE)

Firmware/RTK_Surveyor/System.ino

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,9 @@ bool configureUbloxModule()
4545
if (response == false)
4646
Serial.println(F("Set rate failed"));
4747

48-
if (i2cGNSS.getSurveyInActive() == true || i2cGNSS.getSurveyInValid() == true)
49-
{
50-
response = i2cGNSS.disableSurveyMode(maxWait); //Disable survey
51-
if (response == false)
52-
Serial.println(F("Disable Survey failed"));
53-
}
48+
response = i2cGNSS.disableSurveyMode(maxWait); //Disable survey
49+
if (response == false)
50+
Serial.println(F("Disable Survey failed"));
5451

5552
#define OUTPUT_SETTING 14
5653
#define INPUT_SETTING 12

0 commit comments

Comments
 (0)