From ae5aaa3c792219d826a6766c5eb5cc90a4d801be Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Fri, 11 Jun 2021 00:27:54 +1200 Subject: [PATCH] Fixed bugs in UART configuration introduced by #10704. --- src/main/io/serial.c | 7 +++++-- src/main/target/STM32_UNIFIED/target.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/io/serial.c b/src/main/io/serial.c index f343e31dd..eba9421a5 100644 --- a/src/main/io/serial.c +++ b/src/main/io/serial.c @@ -94,10 +94,10 @@ const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT] = { SERIAL_PORT_USART8, #endif #ifdef USE_UART9 - SERIAL_PORT_UART9_INSTANCE, + SERIAL_PORT_UART9, #endif #ifdef USE_UART10 - SERIAL_PORT_UART10_INSTANCE, + SERIAL_PORT_UART10, #endif #ifdef USE_SOFTSERIAL1 SERIAL_PORT_SOFTSERIAL1, @@ -105,6 +105,9 @@ const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT] = { #ifdef USE_SOFTSERIAL2 SERIAL_PORT_SOFTSERIAL2, #endif +#ifdef USE_LPUART1 + SERIAL_PORT_LPUART1 +#endif }; static uint8_t serialPortCount; diff --git a/src/main/target/STM32_UNIFIED/target.h b/src/main/target/STM32_UNIFIED/target.h index 558c76025..54d97595a 100644 --- a/src/main/target/STM32_UNIFIED/target.h +++ b/src/main/target/STM32_UNIFIED/target.h @@ -155,7 +155,7 @@ #define USE_UART3 #define USE_UART4 #define USE_UART5 -#define USE_UART9 +#define USE_LPUART1 #define SERIAL_PORT_COUNT (UNIFIED_SERIAL_PORT_COUNT + 6)