Skip to content

Commit 7422085

Browse files
josecmdanielRep
authored andcommitted
fix(zynq_uart): add missing parenthesis on ambigous condition
Signed-off-by: Jose Martins <[email protected]>
1 parent 271dd7f commit 7422085

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci

src/platform/drivers/zynq_uart/zynq_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ uint32_t uart_getc(volatile struct Uart_Zynq_hw* uart)
9191

9292
// Chose one of the following: (Trigger Level or Not Empty)
9393
/* Wait until RxFIFO is filled up to the trigger level */
94-
while (!uart->ch_status & UART_CH_STATUS_RTRIG) { }
94+
while (!(uart->ch_status & UART_CH_STATUS_RTRIG)) { }
9595
/* Wait until RxFIFO is not empty */
9696
// while(!uart->ch_status & UART_CH_STATUS_REMPTY) { }
9797

0 commit comments

Comments
 (0)