Coding style consistency
authorNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 15 Sep 2015 23:42:05 +0000 (01:42 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
drivers/serial.c

index d636d2a..2fdbca6 100644 (file)
@@ -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) {