Skip to content

Commit 69f1232

Browse files
committed
Rename pvtUdpServerRuning
1 parent 1811d91 commit 69f1232

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void updateDisplay()
206206
&& pvtServerRunning();
207207
bool displayUdpServerIP = settings.displayServerIP
208208
&& ((millis() % displayServerRepeatInterval) < displayServerTotalTime)
209-
&& udpServerRunning();
209+
&& pvtUdpServerRunning();
210210

211211
if (displayPvtServerIP)
212212
{

Firmware/RTK_Surveyor/PvtServer.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ static volatile RING_BUFFER_OFFSET pvtServerClientTails[PVT_SERVER_MAX_CLIENTS];
8383
// PVT Server handleGnssDataTask Support Routines
8484
//----------------------------------------
8585

86-
bool pvtServerRunning() { return (pvtServerState == PVT_SERVER_STATE_RUNNING); }
87-
8886
// Send data to the PVT clients
8987
int32_t pvtServerClientSendData(int index, uint8_t *data, uint16_t length)
9088
{
@@ -212,6 +210,8 @@ void discardPvtServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET n
212210
// PVT Server Routines
213211
//----------------------------------------
214212

213+
bool pvtServerRunning() { return (pvtServerState == PVT_SERVER_STATE_RUNNING); }
214+
215215
// Update the state of the PVT server state machine
216216
void pvtServerSetState(uint8_t newState)
217217
{

Firmware/RTK_Surveyor/PvtUdpServer.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ static volatile RING_BUFFER_OFFSET pvtUdpServerTail;
101101
// PVT UDP Server handleGnssDataTask Support Routines
102102
//----------------------------------------
103103

104-
bool udpServerRunning()
105-
{
106-
return (pvtUdpServerState == PVT_UDP_SERVER_STATE_RUNNING);
107-
}
108104
// Send data as broadcast
109105
int32_t pvtUdpServerSendDataBroadcast(uint8_t *data, uint16_t length)
110106
{
@@ -203,6 +199,8 @@ void discardPvtUdpServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSE
203199
// PVT Server Routines
204200
//----------------------------------------
205201

202+
bool pvtUdpServerRunning() { return (pvtUdpServerState == PVT_UDP_SERVER_STATE_RUNNING); }
203+
206204
// Update the state of the PVT server state machine
207205
void pvtUdpServerSetState(uint8_t newState)
208206
{

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ const uint8_t btMaxEscapeCharacters = 3; // Number of characters needed to enter
484484

485485
#if COMPILE_NETWORK
486486
bool pvtServerRunning(); // Header
487-
bool udpServerRunning(); // Header
487+
bool pvtUdpServerRunning(); // Header
488488
#endif // COMPILE_NETWORK
489489

490490
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

0 commit comments

Comments
 (0)