Skip to content

Commit a3d1632

Browse files
committed
Add missing ntripServerStop's for NTRIP_SERVER_AUTHORIZATION
1 parent f520755 commit a3d1632

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Firmware/RTK_Surveyor/NtripServer.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,9 @@ void ntripServerUpdate()
497497
if (ntripServerConnectLimitReached())
498498
{
499499
systemPrintln("Caster failed to respond. Do you have your caster address and port correct?");
500+
501+
// Give up - Shutdown NTRIP server, no further retries
502+
ntripServerStop(true);
500503
}
501504
else
502505
{
@@ -506,6 +509,9 @@ void ntripServerUpdate()
506509
else
507510
systemPrintf("NTRIP caster failed to respond. Trying again in %d minutes.\r\n",
508511
ntripServerConnectionAttemptTimeout / 1000 / 60);
512+
513+
// Restart network operation after delay
514+
ntripServerStop(false);
509515
}
510516
}
511517
}

0 commit comments

Comments
 (0)