@@ -86,7 +86,7 @@ const int ppServiceCount = sizeof(ppServices) / sizeof(ppServices[0]);
86
86
void menuPointPerfect ()
87
87
{
88
88
uint8_t pointPerfectServiceOnEntry = settings.pointPerfectService ;
89
-
89
+
90
90
while (1 )
91
91
{
92
92
systemPrintln ();
@@ -290,7 +290,7 @@ void menuPointPerfect()
290
290
printUnknown (incoming);
291
291
}
292
292
293
- if (strlen (settings.pointPerfectClientID ) > 0 )
293
+ if (( strlen (settings.pointPerfectClientID ) > 0 ) && ( pointPerfectServiceUsesKeys () == true ) )
294
294
{
295
295
gnss->applyPointPerfectKeys ();
296
296
}
@@ -338,7 +338,8 @@ void menuPointPerfectSelectService()
338
338
settings.pointPerfectService = incoming - 1 ; // Align incoming to array
339
339
340
340
restartRover = true ; // Require a rover restart to enable / disable RTCM for PPL
341
- settings.requestKeyUpdate = settings.pointPerfectService != PP_NICKNAME_DISABLED; // Force a key update - or don't
341
+ settings.requestKeyUpdate =
342
+ settings.pointPerfectService != PP_NICKNAME_DISABLED; // Force a key update - or don't
342
343
343
344
break ; // Exit menu once selected
344
345
}
@@ -627,7 +628,7 @@ void updateLBand()
627
628
if (strncmp (previousKey, settings.pointPerfectCurrentKey , 33 ) != 0 )
628
629
{
629
630
strncpy (previousKey, settings.pointPerfectCurrentKey , 33 );
630
- gnss->applyPointPerfectKeys (); // Apply keys now. This sets online.lbandCorrections
631
+ gnss->applyPointPerfectKeys (); // Apply keys now.
631
632
if (settings.debugCorrections == true )
632
633
systemPrintln (" ZED-F9P PointPerfect keys applied" );
633
634
}
@@ -741,7 +742,7 @@ void updateLBandCorrections()
741
742
static unsigned long lbandTimeFloatStarted; // Monitors the ZED during L-Band reception if a fix takes too long
742
743
743
744
#ifdef COMPILE_L_BAND
744
- if (online.lbandCorrections == true )
745
+ if (( online.lband_neo == true ) && ( pointPerfectLbandNeeded () == true ) && (online. pointPerfectKeysApplied == true ) )
745
746
{
746
747
i2cLBand.checkUblox (); // Check for the arrival of new PMP data and process it.
747
748
i2cLBand.checkCallbacks (); // Check if any L-Band callbacks are waiting to be processed.
@@ -1129,7 +1130,7 @@ void pointperfectCreateTokenString(char *tokenBuffer, uint8_t *tokenArray, int t
1129
1130
for (int x = 0 ; x < tokenArrayLength; x++)
1130
1131
{
1131
1132
char temp[3 ];
1132
- snprintf (temp, sizeof (temp), " %02x" , tokenArray[x]); // Tokens are case sensitive. Must be lower case.
1133
+ snprintf (temp, sizeof (temp), " %02x" , tokenArray[x]); // Tokens are case sensitive. Must be lower case.
1133
1134
strcat (tokenBuffer, temp);
1134
1135
if (x == 3 || x == 5 || x == 7 || x == 9 )
1135
1136
strcat (tokenBuffer, " -" );
0 commit comments