Skip to content

Commit

Permalink
Increase timeout before closing NTRIP Server.
Browse files Browse the repository at this point in the history
  • Loading branch information
nseidle committed Apr 23, 2024
1 parent 367857c commit 94c1767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/RTK_Everywhere/NtripServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ void ntripServerPrintStatus(int serverIndex)

if (ntripServer->state == NTRIP_SERVER_CASTING)
// Use ntripServer->timer since it gets reset after each successful data
// receiption from the NTRIP caster
// reception from the NTRIP caster
milliseconds = ntripServer->timer - ntripServer->startTime;
else
{
Expand Down Expand Up @@ -780,7 +780,7 @@ void ntripServerUpdate(int serverIndex)
systemPrintf("Connection to NTRIP Caster %d was lost\r\n", serverIndex);
ntripServerRestart(serverIndex);
}
else if ((millis() - ntripServer->timer) > (3 * 1000))
else if ((millis() - ntripServer->timer) > (10 * 1000))
{
// GNSS stopped sending RTCM correction data
systemPrintf("NTRIP Server %d breaking connection to caster due to lack of RTCM data!\r\n", serverIndex);
Expand Down

0 comments on commit 94c1767

Please sign in to comment.