From d6b1e87ee514b0f68955dad51957b510c74237a8 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Wed, 6 Mar 2024 17:14:08 +0000 Subject: [PATCH] Fix for RAK4630 not booting when not connected via UART --- RNode_Firmware.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino index 22f841f..c6b1327 100644 --- a/RNode_Firmware.ino +++ b/RNode_Firmware.ino @@ -68,7 +68,13 @@ void setup() { fifo_init(&serialFIFO, serialBuffer, CONFIG_UART_BUFFER_SIZE); Serial.begin(serial_baudrate); + #if BOARD_MODEL != BOARD_RAK4630 + // Some boards need to wait until the hardware UART is set up before booting + // the full firmware. In the case of the RAK4630, the line below will wait + // until a serial connection is actually established with a master. Thus, it + // is disabled on this platform. while (!Serial); + #endif serial_interrupt_init();