File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -265,8 +265,8 @@ bool GNSS_LG290P::configureOnce()
265
265
{
266
266
response &= setDataBaudRate (settings.dataPortBaud ); // If available, set baud of DATA port
267
267
268
- // This is redundant because to get this far, the comm interface must already be working
269
- // response &= setCommBaudrate(115200 * 4); // Set baud for main comm channel
268
+ // The following setCommBaudrate() is redundant because to get this far, the comm interface must already be
269
+ // working response &= setCommBaudrate(115200 * 4); // Set baud for main comm channel
270
270
271
271
response &= setRadioBaudRate (settings.radioPortBaud ); // If available, set baud of RADIO port
272
272
@@ -1246,19 +1246,23 @@ bool GNSS_LG290P::setDataBaudRate(uint32_t baud)
1246
1246
{
1247
1247
if (online.gnss )
1248
1248
{
1249
- if (productVariant == RTK_POSTCARD )
1249
+ if (getDataBaudRate () == baud )
1250
1250
{
1251
- if (getDataBaudRate () != baud)
1251
+ return (true ); // Baud is set!
1252
+ }
1253
+ else
1254
+ {
1255
+ if (productVariant == RTK_POSTCARD)
1252
1256
{
1253
1257
// UART1 of the LG290P is connected to USB CH342 (Port B)
1254
1258
// This is nicknamed the DATA port
1255
1259
return (setBaudRate (1 , baud));
1256
1260
}
1257
- }
1258
- else
1259
- {
1260
- // On products that don't have a DATA port (Flex), act as if we have set the baud successfully
1261
- return ( true );
1261
+ else
1262
+ {
1263
+ // On products that don't have a DATA port (Flex), act as if we have set the baud successfully
1264
+ return ( true );
1265
+ }
1262
1266
}
1263
1267
}
1264
1268
return (false );
You can’t perform that action at this time.
0 commit comments