@@ -308,18 +308,20 @@ bool ntripClientConnectLimitReached()
308308 bool limitReached = (ntripClientConnectionAttempts >= MAX_NTRIP_CLIENT_CONNECTION_ATTEMPTS);
309309
310310 // Restart the NTRIP client
311- ntripClientStop (limitReached);
311+ ntripClientStop (limitReached || (!settings. enableNtripClient ) );
312312
313313 ntripClientConnectionAttempts++;
314314 ntripClientConnectionAttemptsTotal++;
315+ if (settings.debugNtripClientState )
316+ ntripClientPrintStatus ();
315317
316318 if (limitReached == false )
317319 {
318320 ntripClientConnectionAttemptTimeout =
319321 ntripClientConnectionAttempts * 15 * 1000L ; // Wait 15, 30, 45, etc seconds between attempts
320322
321323 // Display the delay before starting the NTRIP client
322- if (ntripClientConnectionAttemptTimeout)
324+ if (settings. debugNtripClientState && ntripClientConnectionAttemptTimeout)
323325 {
324326 seconds = ntripClientConnectionAttemptTimeout / 1000 ;
325327 if (seconds < 120 )
@@ -457,7 +459,7 @@ void ntripClientRestart()
457459 // Save the previous uptime value
458460 if (ntripClientState == NTRIP_CLIENT_CONNECTED)
459461 ntripClientStartTime = ntripClientTimer - ntripClientStartTime;
460- ntripClientStop (!settings. enableNtripClient );
462+ ntripClientConnectLimitReached ( );
461463}
462464
463465// Update the state of the NTRIP client state machine
@@ -622,7 +624,7 @@ void ntripClientUpdate()
622624 {
623625 // Socket opened to NTRIP system
624626 if (settings.debugNtripClientState )
625- systemPrintf (" NTRIP client waiting for response from %s:%d\r\n " ,
627+ systemPrintf (" NTRIP Client waiting for response from %s:%d\r\n " ,
626628 settings.ntripClient_CasterHost ,
627629 settings.ntripClient_CasterPort );
628630 ntripClientSetState (NTRIP_CLIENT_WAIT_RESPONSE);
0 commit comments