Fix for RAK4630 not booting when not connected via UART

This commit is contained in:
jacob.eva 2024-03-06 17:14:08 +00:00
parent 73617226b3
commit d6b1e87ee5
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -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();