Skip to content

Commit 5ca7d76

Browse files
committed
Remove ntripServerStart before base is complete.
1 parent 3f5223f commit 5ca7d76

File tree

1 file changed

+6
-25
lines changed

1 file changed

+6
-25
lines changed

Firmware/RTK_Surveyor/States.ino

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -247,23 +247,9 @@ void updateSystemState()
247247
displayBaseSuccess(500); //Show 'Base Started'
248248

249249
if (settings.fixedBase == false)
250-
{
251-
//Restart Bluetooth with 'Base' name
252-
//We start BT regardless of Ntrip Server in case user wants to transmit survey-in stats over BT
253-
if (settings.ntripServer_StartAtSurveyIn)
254-
ntripServerStart();
255-
else
256-
bluetoothStart();
257250
changeState(STATE_BASE_TEMP_SETTLE);
258-
}
259251
else if (settings.fixedBase == true)
260-
{
261-
if (settings.enableNtripServer)
262-
ntripServerStart();
263-
else
264-
bluetoothStart();
265252
changeState(STATE_BASE_FIXED_NOT_STARTED);
266-
}
267253
}
268254
else
269255
{
@@ -326,17 +312,12 @@ void updateSystemState()
326312
digitalWrite(pin_baseStatusLED, HIGH); //Indicate survey complete
327313

328314
//Start the NTRIP server if requested
329-
if ((settings.ntripServer_StartAtSurveyIn == false)
330-
&& (settings.enableNtripServer == true))
331-
{
315+
if (settings.enableNtripServer == true)
332316
ntripServerStart();
333-
}
334317

335-
//TODO select either or WiFi or ESP NOW
318+
//Start ESP-Now if requested
336319
if (settings.radioType == RADIO_ESPNOW)
337-
{
338320
espnowStart();
339-
}
340321

341322
rtcmPacketsSent = 0; //Reset any previous number
342323
changeState(STATE_BASE_TEMP_TRANSMITTING);
@@ -397,13 +378,13 @@ void updateSystemState()
397378
if (productVariant == RTK_SURVEYOR)
398379
digitalWrite(pin_baseStatusLED, HIGH); //Turn on base LED
399380

400-
//TODO shouldn't NtripServer be here?
381+
//Start the NTRIP server if requested
382+
if (settings.enableNtripServer)
383+
ntripServerStart();
401384

402-
//TODO select either or WiFi or ESP NOW
385+
//Start ESP-Now if requested
403386
if (settings.radioType == RADIO_ESPNOW)
404-
{
405387
espnowStart();
406-
}
407388

408389
changeState(STATE_BASE_FIXED_TRANSMITTING);
409390
}

0 commit comments

Comments
 (0)