Skip to content

Commit 6edca93

Browse files
committed
Correct pins for LoRa update on Flex
1 parent da3c532 commit 6edca93

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Firmware/RTK_Everywhere/LoRa.ino

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,12 @@ void beginLoraFirmwareUpdate()
531531
serialGNSS->setRxBufferSize(settings.uartReceiveBufferSize);
532532
serialGNSS->setTimeout(settings.serialTimeoutGNSS); // Requires serial traffic on the UART pins for detection
533533

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");
536540

537541
// Make sure ESP32 is connected to LoRa STM32 UART
538542
muxSelectLoRaConfigure();

0 commit comments

Comments
 (0)