@@ -33,8 +33,8 @@ void updatePplTask(void *e)
3333 {
3434 if (rtcmLength > 0 )
3535 {
36- updateCorrectionsLastSeen (CORR_LBAND );
37- if (isHighestRegisteredCorrectionsSource (CORR_LBAND ))
36+ updateCorrectionsLastSeen (pplCorrectionsSource );
37+ if (isHighestRegisteredCorrectionsSource (pplCorrectionsSource ))
3838 {
3939 // Set ZED SOURCE to 1 (L-Band) if needed
4040 // Note: this is almost certainly redundant. It would only be used if we
@@ -318,17 +318,18 @@ bool sendGnssToPpl(uint8_t *buffer, int numDataBytes)
318318 return false ;
319319}
320320
321- // Send Spartn packets from PointPerfect (either IP or L-Band) to PPL
321+ // Send Spartn packets from PointPerfect to PPL
322322bool sendSpartnToPpl (uint8_t *buffer, int numDataBytes)
323323{
324324 if (online.ppl == true )
325325 {
326+ pplCorrectionsSource = CORR_IP;
326327
327328 ePPL_ReturnStatus result = PPL_SendSpartn (buffer, numDataBytes);
328329 if (result != ePPL_Success)
329330 {
330331 if (settings.debugCorrections == true )
331- systemPrintf (" ERROR processRXMPMP PPL_SendSpartn: %s\r\n " , PPLReturnStatusToStr (result));
332+ systemPrintf (" ERROR PPL_SendSpartn: %s\r\n " , PPLReturnStatusToStr (result));
332333 return false ;
333334 }
334335 lastMqttToPpl = millis ();
@@ -342,6 +343,31 @@ bool sendSpartnToPpl(uint8_t *buffer, int numDataBytes)
342343 return false ;
343344}
344345
346+ // Send raw L-Band Spartn packets from mosaic X5 to PPL
347+ bool sendAuxSpartnToPpl (uint8_t *buffer, int numDataBytes)
348+ {
349+ if (online.ppl == true )
350+ {
351+ pplCorrectionsSource = CORR_LBAND;
352+
353+ ePPL_ReturnStatus result = PPL_SendAuxSpartn (buffer, numDataBytes);
354+ if (result != ePPL_Success)
355+ {
356+ if (settings.debugCorrections == true )
357+ systemPrintf (" ERROR PPL_SendAuxSpartn: %s\r\n " , PPLReturnStatusToStr (result));
358+ return false ;
359+ }
360+ lastMqttToPpl = millis ();
361+ return true ;
362+ }
363+ else
364+ {
365+ pplLBandCorrections = true ; // Notify updatePPL() that L-Band is online
366+ }
367+
368+ return false ;
369+ }
370+
345371// Print human-readable PPL status
346372const char *PPLReturnStatusToStr (ePPL_ReturnStatus status)
347373{
0 commit comments