From 94c17675061b4740a760d00a843ec87d8aa8cabf Mon Sep 17 00:00:00 2001 From: Nathan Seidle Date: Tue, 23 Apr 2024 14:20:11 -0600 Subject: [PATCH] Increase timeout before closing NTRIP Server. --- Firmware/RTK_Everywhere/NtripServer.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/RTK_Everywhere/NtripServer.ino b/Firmware/RTK_Everywhere/NtripServer.ino index a71de398d..48f2ff4fd 100644 --- a/Firmware/RTK_Everywhere/NtripServer.ino +++ b/Firmware/RTK_Everywhere/NtripServer.ino @@ -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 { @@ -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);