diff options
author | Josh Blum <josh@joshknows.com> | 2012-01-04 10:26:00 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-01-04 10:26:00 -0800 |
commit | f2388c07ecff5a3488c6ef23852321df54292934 (patch) | |
tree | 92f6e1653765a40bdc95f18ed639ccf4f534c0fc /firmware/zpu/lib/hal_uart.c | |
parent | 1b2108274aeec3733f84c82bee885ab9a4da4c26 (diff) | |
download | uhd-f2388c07ecff5a3488c6ef23852321df54292934.tar.gz uhd-f2388c07ecff5a3488c6ef23852321df54292934.tar.bz2 uhd-f2388c07ecff5a3488c6ef23852321df54292934.zip |
usrp2: fw fix for hal_uart_getc_noblock return code
Diffstat (limited to 'firmware/zpu/lib/hal_uart.c')
-rw-r--r-- | firmware/zpu/lib/hal_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |