From f2388c07ecff5a3488c6ef23852321df54292934 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 4 Jan 2012 10:26:00 -0800 Subject: usrp2: fw fix for hal_uart_getc_noblock return code --- firmware/zpu/lib/hal_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/zpu/lib/hal_uart.c') diff --git a/firmware/zpu/lib/hal_uart.c b/firmware/zpu/lib/hal_uart.c index 6a37cceb6..af60bed6a 100644 --- a/firmware/zpu/lib/hal_uart.c +++ b/firmware/zpu/lib/hal_uart.c @@ -108,7 +108,7 @@ hal_uart_getc_noblock(hal_uart_name_t u) // int timeout = 0; // while (((uart_regs[u].rxlevel) == 0) && (timeout++ < HAL_UART_TIMEOUT_MS)) // mdelay(1); - if(uart_regs[u].rxlevel == 0) return 255; + if(uart_regs[u].rxlevel == 0) return -1; return uart_regs[u].rxchar; } -- cgit v1.2.3