From e024c3396836755530bd38dad7319f9f9bd52abe Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Fri, 9 Dec 2016 02:33:08 +0100 Subject: [PATCH] Also fix get_priority_mask() return value check in serial_flush() --- drivers/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial.c b/drivers/serial.c index 7698069..155478e 100644 --- a/drivers/serial.c +++ b/drivers/serial.c @@ -237,7 +237,7 @@ int serial_flush(uint32_t uart_num) /* Active wait for message to be sent. If interrupts are * disabled, call the UART handler while waiting. */ while (uart->sending) { - if (get_priority_mask() == 0) { + if (get_priority_mask() != 0) { uart_check_tx(uart, uart->regs->func.intr_pending); } } -- 2.43.0