From c9eb7eb449a246c607fa92a5313e3137d728fbcb Mon Sep 17 00:00:00 2001 From: roland van straten Date: Tue, 12 Mar 2019 13:56:39 +0100 Subject: [PATCH] stm32/stm32_it: Guard UART7_IRQHandler with check for UART7 define. All STM32 with a UART7 also have a UART8 and vice versa, but this change improves readability and allows for them to be independent in the future. --- ports/stm32/stm32_it.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/stm32_it.c b/ports/stm32/stm32_it.c index 004e0f974d..637442a916 100644 --- a/ports/stm32/stm32_it.c +++ b/ports/stm32/stm32_it.c @@ -735,7 +735,7 @@ void USART6_IRQHandler(void) { IRQ_EXIT(USART6_IRQn); } -#if defined(UART8) +#if defined(UART7) void UART7_IRQHandler(void) { IRQ_ENTER(UART7_IRQn); uart_irq_handler(7);