Skip to content

Commit f651ba7

Browse files
authored
Merge pull request #526 from LeeLeahy2/net-rtcm
Changed from wifi*RTCM to net*RTCM
2 parents 27d19c4 + 2e0cd2c commit f651ba7

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ uint32_t setWiFiIcon_TwoRadios()
10021002
{
10031003
firstRadioSpotTimer = millis();
10041004

1005-
if (wifiIncomingRTCM == true || wifiOutgoingRTCM == true)
1005+
if (netIncomingRTCM == true || netOutgoingRTCM == true)
10061006
firstRadioSpotBlink ^= 1; // Share the spot
10071007
else
10081008
firstRadioSpotBlink = false;
@@ -1028,15 +1028,15 @@ uint32_t setWiFiIcon_TwoRadios()
10281028
else
10291029
{
10301030
// Share the spot. Determine if we need to indicate Up, or Down
1031-
if (wifiIncomingRTCM == true)
1031+
if (netIncomingRTCM == true)
10321032
{
10331033
icons |= ICON_DOWN_ARROW_LEFT;
1034-
wifiIncomingRTCM = false; // Reset, set during NTRIP Client
1034+
netIncomingRTCM = false; // Reset, set during NTRIP Client
10351035
}
1036-
else if (wifiOutgoingRTCM == true)
1036+
else if (netOutgoingRTCM == true)
10371037
{
10381038
icons |= ICON_UP_ARROW_LEFT;
1039-
wifiOutgoingRTCM = false; // Reset, set during NTRIP Server
1039+
netOutgoingRTCM = false; // Reset, set during NTRIP Server
10401040
}
10411041
else
10421042
{
@@ -1089,7 +1089,7 @@ uint32_t setWiFiIcon_ThreeRadios()
10891089
{
10901090
thirdRadioSpotTimer = millis();
10911091

1092-
if (wifiIncomingRTCM == true || wifiOutgoingRTCM == true)
1092+
if (netIncomingRTCM == true || netOutgoingRTCM == true)
10931093
thirdRadioSpotBlink ^= 1; // Share the spot
10941094
else
10951095
thirdRadioSpotBlink = false;
@@ -1115,15 +1115,15 @@ uint32_t setWiFiIcon_ThreeRadios()
11151115
else
11161116
{
11171117
// Share the spot. Determine if we need to indicate Up, or Down
1118-
if (wifiIncomingRTCM == true)
1118+
if (netIncomingRTCM == true)
11191119
{
11201120
icons |= ICON_DOWN_ARROW_RIGHT;
1121-
wifiIncomingRTCM = false; // Reset, set during NTRIP Client
1121+
netIncomingRTCM = false; // Reset, set during NTRIP Client
11221122
}
1123-
else if (wifiOutgoingRTCM == true)
1123+
else if (netOutgoingRTCM == true)
11241124
{
11251125
icons |= ICON_UP_ARROW_RIGHT;
1126-
wifiOutgoingRTCM = false; // Reset, set during NTRIP Server
1126+
netOutgoingRTCM = false; // Reset, set during NTRIP Server
11271127
}
11281128
else
11291129
{

Firmware/RTK_Surveyor/NtripClient.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ void ntripClientStop(bool wifiClientAllocated)
320320
// Determine the next NTRIP client state
321321
ntripClientSetState((ntripClient && (wifiClientAllocated == false)) ? NTRIP_CLIENT_ON : NTRIP_CLIENT_OFF);
322322
online.ntripClient = false;
323-
wifiIncomingRTCM = false;
323+
netIncomingRTCM = false;
324324
}
325325

326326
// Determine if NTRIP Client is needed
@@ -623,7 +623,7 @@ void ntripClientUpdate()
623623

624624
// Push RTCM to GNSS module over I2C / SPI
625625
theGNSS.pushRawData(rtcmData, rtcmCount);
626-
wifiIncomingRTCM = true;
626+
netIncomingRTCM = true;
627627

628628
if (!inMainMenu && settings.enablePrintNtripClientState)
629629
systemPrintf("NTRIP Client received %d RTCM bytes, pushed to ZED\r\n", rtcmCount);

Firmware/RTK_Surveyor/NtripServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void ntripServerProcessRTCM(uint8_t incoming)
266266
ntripServer->write(incoming); // Send this byte to socket
267267
ntripServerBytesSent++;
268268
ntripServerTimer = millis();
269-
wifiOutgoingRTCM = true;
269+
netOutgoingRTCM = true;
270270
}
271271
}
272272

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ unsigned long thirdRadioSpotTimer = 0;
660660

661661
bool bluetoothIncomingRTCM = false;
662662
bool bluetoothOutgoingRTCM = false;
663-
bool wifiIncomingRTCM = false;
664-
bool wifiOutgoingRTCM = false;
663+
bool netIncomingRTCM = false;
664+
bool netOutgoingRTCM = false;
665665
bool espnowIncomingRTCM = false;
666666
bool espnowOutgoingRTCM = false;
667667

0 commit comments

Comments
 (0)