@@ -556,6 +556,25 @@ bool GNSS_LG290P::configureBase()
556556// ----------------------------------------
557557void GNSS_LG290P::createMessageList (String &returnText)
558558{
559+ for (int messageNumber = 0 ; messageNumber < MAX_LG290P_NMEA_MSG; messageNumber++)
560+ {
561+ // Strictly, this should be bool true/false as only 0/1 values are allowed
562+ // and a checkbox should be used to select. BUT other platforms permit
563+ // rates higher than 1. It's way cleaner if we just use 0/1 here
564+ returnText += " messageRateNMEA_" + String (lgMessagesNMEA[messageNumber].msgTextName ) + " ," +
565+ String (settings.lg290pMessageRatesNMEA [messageNumber]) + " ," ;
566+ }
567+ for (int messageNumber = 0 ; messageNumber < MAX_LG290P_RTCM_MSG; messageNumber++)
568+ {
569+ returnText += " messageRateRTCMRover_" + String (lgMessagesRTCM[messageNumber].msgTextName ) + " ," +
570+ String (settings.lg290pMessageRatesRTCMRover [messageNumber]) + " ," ;
571+ }
572+ for (int messageNumber = 0 ; messageNumber < MAX_LG290P_PQTM_MSG; messageNumber++)
573+ {
574+ // messageRatePQTM is unique to the LG290P. So we can use true/false and a checkbox
575+ returnText += " messageRatePQTM_" + String (lgMessagesPQTM[messageNumber].msgTextName ) + " ," +
576+ String (settings.lg290pMessageRatesPQTM [messageNumber] ? " true" : " false" ) + " ," ;
577+ }
559578}
560579
561580// ----------------------------------------
@@ -566,6 +585,14 @@ void GNSS_LG290P::createMessageList(String &returnText)
566585// ----------------------------------------
567586void GNSS_LG290P::createMessageListBase (String &returnText)
568587{
588+ for (int messageNumber = 0 ; messageNumber < MAX_LG290P_RTCM_MSG; messageNumber++)
589+ {
590+ // Strictly, this should be bool true/false as only 0/1 values are allowed
591+ // and a checkbox should be used to select. BUT other platforms permit
592+ // rates higher than 1. It's way cleaner if we just use 0/1 here
593+ returnText += " messageRateRTCMBase_" + String (lgMessagesRTCM[messageNumber].msgTextName ) + " ," +
594+ String (settings.lg290pMessageRatesRTCMBase [messageNumber]) + " ," ;
595+ }
569596}
570597
571598// ----------------------------------------
0 commit comments