From: Nathael Pajani Date: Fri, 9 Dec 2016 01:33:08 +0000 (+0100) Subject: Also fix get_priority_mask() return value check in serial_flush() X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=e024c3396836755530bd38dad7319f9f9bd52abe;p=soft%2Flpc122x%2Fcore Also fix get_priority_mask() return value check in serial_flush() --- 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); } }