Skip to content

Commit 2ebf3d3

Browse files
committed
Remove ntripClientSwitchToBluetooth
1 parent 31689e4 commit 2ebf3d3

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

Firmware/RTK_Surveyor/NtripClient.ino

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ bool ntripClientConnectLimitReached()
156156
{
157157
//No more connection attempts, switching to Bluetooth
158158
Serial.println("NTRIP Client connection attempts exceeded!");
159-
ntripClientSwitchToBluetooth();
159+
160+
//Stop WiFi operations
161+
ntripClientStop(true);
160162
}
161163
return limitReached;
162164
}
@@ -183,18 +185,6 @@ void ntripClientResponse(char * response, size_t maxLength)
183185
*response = '\0';
184186
}
185187

186-
//Switch to Bluetooth operation
187-
void ntripClientSwitchToBluetooth()
188-
{
189-
Serial.println("NTRIP Client failure, switching to Bluetooth!");
190-
191-
//Stop WiFi operations
192-
ntripClientStop(true);
193-
194-
//Turn on Bluetooth with 'Rover' name
195-
bluetoothStart();
196-
}
197-
198188
//Update the state of the NTRIP client state machine
199189
void ntripClientSetState(byte newState)
200190
{
@@ -391,8 +381,8 @@ void ntripClientUpdate()
391381
//Look for '401 Unauthorized'
392382
Serial.printf("NTRIP Client caster responded with bad news: %s. Are you sure your caster credentials are correct?\n\r", response);
393383

394-
//Switch to Bluetooth operation
395-
ntripClientSwitchToBluetooth();
384+
//Stop WiFi operations
385+
ntripClientStop(true);
396386
}
397387
else
398388
{
@@ -460,7 +450,7 @@ void ntripClientUpdate()
460450
i2cGNSS.pushRawData(rtcmData, rtcmCount);
461451
wifiIncomingRTCM = true;
462452

463-
if(!inMainMenu) log_d("NTRIP Client received %d RTCM bytes, pushed to ZED", rtcmCount);
453+
if (!inMainMenu) log_d("NTRIP Client received %d RTCM bytes, pushed to ZED", rtcmCount);
464454
}
465455
}
466456

0 commit comments

Comments
 (0)