HAL_ChibiOS: fixed build for EMPTY uarts

this fixes NucleoH743 build
This commit is contained in:
Andrew Tridgell 2021-11-01 14:36:09 +11:00 committed by Peter Barker
parent 2d7076fd39
commit 98849a3998

View File

@ -1503,7 +1503,7 @@ def write_UART_config(f):
# write config for CrashCatcher UART
if not uart_list[0].startswith('OTG') and not uart_list[0].startswith('EMPTY'):
crash_uart = uart_list[0]
elif not uart_list[2].startswith('OTG') and not uart_list[0].startswith('EMPTY'):
elif not uart_list[2].startswith('OTG') and not uart_list[2].startswith('EMPTY'):
crash_uart = uart_list[2]
if crash_uart is not None and get_config('FLASH_SIZE_KB', type=int) >= 2048: