Skip to content

Commit a829c7c

Browse files
committed
Fix merge errors
1 parent e069399 commit a829c7c

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

Firmware/RTK_Everywhere/GNSS_LG290P.ino

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,10 @@ uint32_t GNSS_LG290P::getDataBaudRate()
12411241
// This is nicknamed the DATA port
12421242
dataUart = 3;
12431243
}
1244+
else
1245+
{
1246+
systemPrintln("getDataBaudRate: Uncaught platform");
1247+
}
12441248
return (getBaudRate(dataUart));
12451249
}
12461250

@@ -1263,20 +1267,20 @@ bool GNSS_LG290P::setDataBaudRate(uint32_t baud)
12631267
// This is nicknamed the DATA port
12641268
return (setBaudRate(1, baud));
12651269
}
1266-
}
1267-
else if (productVariant == RTK_TORCH_X2)
1268-
{
1269-
if (getDataBaudRate() != baud)
1270+
else if (productVariant == RTK_TORCH_X2)
12701271
{
1271-
// UART3 of the LG290P is connected to USB CH342 (Port A)
1272-
// This is nicknamed the DATA port
1273-
return (setBaudRate(3, baud));
1272+
if (getDataBaudRate() != baud)
1273+
{
1274+
// UART3 of the LG290P is connected to USB CH342 (Port A)
1275+
// This is nicknamed the DATA port
1276+
return (setBaudRate(3, baud));
1277+
}
1278+
}
1279+
else
1280+
{
1281+
// On products that don't have a DATA port (Flex), act as if we have set the baud successfully
1282+
return (true);
12741283
}
1275-
}
1276-
else
1277-
{
1278-
// On products that don't have a DATA port (Flex), act as if we have set the baud successfully
1279-
return (true);
12801284
}
12811285
}
12821286
return (false);
@@ -1948,9 +1952,9 @@ void GNSS_LG290P::menuMessages()
19481952

19491953
setRtcmRoverMessageRates(0); // Turn off all RTCM messages
19501954
setRtcmRoverMessageRateByName("RTCM3-1019", rtcmReportRate);
1951-
setRtcmRoverMessageRateByName("RTCM3-1020", rtcmReportRate); //Not needed when MSM7 is used
1955+
// setRtcmRoverMessageRateByName("RTCM3-1020", rtcmReportRate); //Not needed when MSM7 is used
19521956
// setRtcmRoverMessageRateByName("RTCM3-1042", rtcmReportRate); //BeiDou not used by CSRS-PPP
1953-
setRtcmRoverMessageRateByName("RTCM3-1046", rtcmReportRate); //Not needed when MSM7 is used
1957+
// setRtcmRoverMessageRateByName("RTCM3-1046", rtcmReportRate); //Not needed when MSM7 is used
19541958
setRtcmRoverMessageRateByName("RTCM3-107X", rtcmReportRate);
19551959
setRtcmRoverMessageRateByName("RTCM3-108X", rtcmReportRate);
19561960
setRtcmRoverMessageRateByName("RTCM3-109X", rtcmReportRate);

0 commit comments

Comments
 (0)