aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/zpu/lib/hal_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/zpu/lib/hal_uart.c')
-rw-r--r--firmware/zpu/lib/hal_uart.c2
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;
}