From abcf5d19f082b952e0d8dfb6b06e5c188ed2026d Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 16 Sep 2015 01:42:05 +0200 Subject: [PATCH] Coding style consistency --- drivers/serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/serial.c b/drivers/serial.c index d636d2a..2fdbca6 100644 --- a/drivers/serial.c +++ b/drivers/serial.c @@ -173,8 +173,9 @@ int serial_write(uint32_t uart_num, const char *buf, uint32_t length) /* If UART is sending wait for buffer empty */ /* FIXME : be smart for OS, call scheduler or return */ while (uart->sending != 0) { - if (get_priority_mask() == 0) + if (get_priority_mask() == 0) { uart_check_tx(uart, uart->regs->func.intr_pending); + } } if (length > SERIAL_OUT_BUFF_SIZE) { -- 2.43.0