File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -531,8 +531,12 @@ void beginLoraFirmwareUpdate()
531
531
serialGNSS->setRxBufferSize (settings.uartReceiveBufferSize );
532
532
serialGNSS->setTimeout (settings.serialTimeoutGNSS ); // Requires serial traffic on the UART pins for detection
533
533
534
- // TODO: pins are different on Flex
535
- serialGNSS->begin (115200 , SERIAL_8N1, pin_GnssUart_RX, pin_GnssUart_TX); // Keep this at 115200
534
+ if (productVariant == RTK TORCH)
535
+ serialGNSS->begin (115200 , SERIAL_8N1, pin_GnssUart_RX, pin_GnssUart_TX); // Keep this at 115200
536
+ else if (productVariant == RTK_FLEX)
537
+ serialGNSS->begin (115200 , SERIAL_8N1, pin_IMU_RX, pin_IMU_TX); // Keep this at 115200
538
+ else
539
+ systemPrintln (" ERROR: productVariant does not support LoRa" );
536
540
537
541
// Make sure ESP32 is connected to LoRa STM32 UART
538
542
muxSelectLoRaConfigure ();
You can’t perform that action at this time.
0 commit comments