From: Nathael Pajani Date: Tue, 15 Sep 2015 23:42:05 +0000 (+0200) Subject: Coding style consistency X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=abcf5d19f082b952e0d8dfb6b06e5c188ed2026d;p=soft%2Flpc122x%2Fcore Coding style consistency --- 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) {