@@ -66,12 +66,13 @@ typedef struct
66
66
67
67
// The various services offered by PointPerfect
68
68
const PP_Service ppServices[] = {
69
- {" Disabled" , PP_MODEL_NONE, PP_DELIVERY_NONE, PP_ENCODING_NONE}, // Do not use PointPerfect corrections
70
- {" Flex NTRIP/RTCM" , PP_MODEL_SSR, PP_DELIVERY_NTRIP, PP_ENCODING_RTCM}, // Uses "ZTP-RTCM-100" profile
69
+ {" Disabled" , PP_MODEL_NONE, PP_DELIVERY_NONE, PP_ENCODING_NONE}, // Do not use PointPerfect corrections
70
+ {" Flex NTRIP/RTCM" , PP_MODEL_SSR, PP_DELIVERY_NTRIP, PP_ENCODING_RTCM}, // Uses "ZTP-RTCM-100" profile
71
71
{" Flex L-Band North America" , PP_MODEL_SSR, PP_DELIVERY_LBAND_NA, PP_ENCODING_SPARTN}, // Uses "ZTP-LBand" profile
72
- {" Global" , PP_MODEL_SSR, PP_DELIVERY_LBAND_GLOBAL, PP_ENCODING_SPARTN}, // Uses "ZTP-Global" profile
73
- {" Live" , PP_MODEL_OSR, PP_DELIVERY_NTRIP, PP_ENCODING_RTCM}, // Uses "ZTP-Live" profile
74
- {" Flex MQTT (Deprecated)" , PP_MODEL_SSR, PP_DELIVERY_MQTT, PP_ENCODING_SPARTN}, // Uses "ZTP-IP" profile, now deprecated
72
+ {" Global" , PP_MODEL_SSR, PP_DELIVERY_LBAND_GLOBAL, PP_ENCODING_SPARTN}, // Uses "ZTP-Global" profile
73
+ {" Live" , PP_MODEL_OSR, PP_DELIVERY_NTRIP, PP_ENCODING_RTCM}, // Uses "ZTP-Live" profile
74
+ {" Flex MQTT (Deprecated)" , PP_MODEL_SSR, PP_DELIVERY_MQTT,
75
+ PP_ENCODING_SPARTN}, // Uses "ZTP-IP" profile, now deprecated
75
76
// "ZTP-RTCM-100-Trial" profile deprecated
76
77
// "ZTP-LBand+IP" profile deprecated
77
78
};
@@ -317,8 +318,6 @@ const char *printDeviceId()
317
318
// Present user with list of available services, list depends on platform
318
319
void menuPointPerfectSelectService ()
319
320
{
320
- clearBuffer (); // Empty buffer of any newline chars
321
-
322
321
while (1 )
323
322
{
324
323
systemPrintln ();
@@ -1379,14 +1378,24 @@ bool provisioningKeysNeeded()
1379
1378
keysNeeded = true ;
1380
1379
1381
1380
// If requestKeyUpdate is true, begin provisioning
1382
- // Must come first to allow NTRIP/RTCM type services to start provisioning
1381
+ // Must come before pointPerfectServiceUsesKeys() check
1383
1382
if (settings.requestKeyUpdate )
1384
1383
{
1385
1384
if (settings.debugPpCertificate )
1386
1385
systemPrintln (" requestKeyUpdate is true." );
1387
1386
break ;
1388
1387
}
1389
1388
1389
+ // If NTRIP service, but no credentials, then start provisioning
1390
+ // Must come before pointPerfectServiceUsesKeys() check
1391
+ if (pointPerfectNtripNeeded () &&
1392
+ strlen (settings.ntripClient_CasterHost ) == 0 ) // NTRIP service, but no credentials
1393
+ {
1394
+ if (settings.debugPpCertificate )
1395
+ systemPrintln (" NTRIP credentials empty, starting ZTP." );
1396
+ break ;
1397
+ }
1398
+
1390
1399
if (pointPerfectServiceUsesKeys () == false )
1391
1400
{
1392
1401
keysNeeded = false ;
@@ -1421,8 +1430,6 @@ bool provisioningKeysNeeded()
1421
1430
// If there are 28 days remaining, PointPerfect won't have new keys.
1422
1431
if (daysRemaining < 28 )
1423
1432
{
1424
- // When did we last try to get keys? Attempt every 24 hours - or always for DEVELOPER
1425
- // if (rtc.getEpoch() - settings.lastKeyAttempt > ( ENABLE_DEVELOPER ? 0 : SECONDS_IN_A_DAY))
1426
1433
// When did we last try to get keys? Attempt every 24 hours
1427
1434
if (rtc.getEpoch () - settings.lastKeyAttempt > SECONDS_IN_A_DAY)
1428
1435
{
0 commit comments