Merge pull request #10790 from mikeller/fix_uart_bugs

Fixed bugs in UART configuration introduced by #10704.
This commit is contained in:
Michael Keller 2021-06-13 18:20:38 +12:00 committed by GitHub
commit 9ae2fe6d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

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

View File

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