@@ -173,7 +173,7 @@ const RtkMode_t ntripServerMode = RTK_MODE_BASE_FIXED;
173173// ----------------------------------------
174174
175175// NTRIP Servers
176- volatile static NTRIP_SERVER_DATA ntripServerArray[NTRIP_SERVER_MAX];
176+ static NTRIP_SERVER_DATA ntripServerArray[NTRIP_SERVER_MAX];
177177
178178// ----------------------------------------
179179// NTRIP Server Routines
@@ -184,7 +184,7 @@ volatile static NTRIP_SERVER_DATA ntripServerArray[NTRIP_SERVER_MAX];
184184// ----------------------------------------
185185bool ntripServerConnectCaster (int serverIndex)
186186{
187- volatile NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
187+ NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
188188 const int SERVER_BUFFER_SIZE = 512 ;
189189 char serverBuffer[SERVER_BUFFER_SIZE];
190190
@@ -239,7 +239,7 @@ bool ntripServerConnectLimitReached(int serverIndex)
239239{
240240 bool limitReached;
241241 int minutes;
242- volatile NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
242+ NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
243243 int seconds;
244244
245245 // Retry the connection a few times
@@ -311,9 +311,9 @@ bool ntripServerEnabled(int serverIndex, const char ** line)
311311 {
312312 if (line)
313313 {
314- if (settings.ntripServer_CasterHost [0 ] == 0 )
314+ if (settings.ntripServer_CasterHost [serverIndex][ 0 ] == 0 )
315315 *line = " , Caster host not specified!" ;
316- else if (settings.ntripServer_CasterPort == 0 )
316+ else if (settings.ntripServer_CasterPort [serverIndex] == 0 )
317317 *line = " , Caster port not specified!" ;
318318 else
319319 *line = " , Mount point not specified!" ;
@@ -334,7 +334,7 @@ bool ntripServerEnabled(int serverIndex, const char ** line)
334334// ----------------------------------------
335335void ntripServerPrintStateSummary (int serverIndex)
336336{
337- volatile NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
337+ NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
338338
339339 switch (ntripServer->state )
340340 {
@@ -362,7 +362,7 @@ void ntripServerPrintStateSummary(int serverIndex)
362362// ----------------------------------------
363363void ntripServerPrintStatus (int serverIndex)
364364{
365- volatile NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
365+ NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
366366 uint64_t milliseconds;
367367 uint32_t days;
368368 byte hours;
@@ -410,7 +410,7 @@ void ntripServerPrintStatus(int serverIndex)
410410// ----------------------------------------
411411void ntripServerProcessRTCM (int serverIndex, uint8_t incoming)
412412{
413- volatile NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
413+ NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
414414
415415 if (ntripServer->state == NTRIP_SERVER_CASTING)
416416 {
@@ -464,7 +464,7 @@ void ntripServerProcessRTCM(int serverIndex, uint8_t incoming)
464464// ----------------------------------------
465465void ntripServerResponse (int serverIndex, char *response, size_t maxLength)
466466{
467- volatile NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
467+ NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
468468 char *responseEnd;
469469
470470 // Make sure that we can zero terminate the response
@@ -483,7 +483,7 @@ void ntripServerResponse(int serverIndex, char *response, size_t maxLength)
483483// ----------------------------------------
484484void ntripServerRestart (int serverIndex)
485485{
486- volatile NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
486+ NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
487487
488488 // Save the previous uptime value
489489 if (ntripServer->state == NTRIP_SERVER_CASTING)
@@ -496,7 +496,7 @@ void ntripServerRestart(int serverIndex)
496496// ----------------------------------------
497497void ntripServerSetState (int serverIndex, uint8_t newState)
498498{
499- volatile NTRIP_SERVER_DATA * ntripServer;
499+ NTRIP_SERVER_DATA * ntripServer;
500500
501501 ntripServer = &ntripServerArray[serverIndex];
502502 if (settings.debugNtripServerState )
@@ -548,7 +548,7 @@ void ntripServerStop(int serverIndex, bool shutdown)
548548{
549549 bool enabled;
550550 int index;
551- volatile NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
551+ NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
552552
553553 if (ntripServer->networkClient )
554554 {
@@ -612,7 +612,7 @@ void ntripServerUpdate(int serverIndex)
612612 const char * line = " " ;
613613
614614 // Get the NTRIP data structure
615- volatile NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
615+ NTRIP_SERVER_DATA *ntripServer = &ntripServerArray[serverIndex];
616616
617617 // Shutdown the NTRIP server when the mode or setting changes
618618 DMW_if
0 commit comments