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)