aboutsummaryrefslogtreecommitdiff
path: root/teensy/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'teensy/uart.c')
-rw-r--r--teensy/uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/teensy/uart.c b/teensy/uart.c
index 81035aed6..8b73d733f 100644
--- a/teensy/uart.c
+++ b/teensy/uart.c
@@ -172,11 +172,11 @@ bool uart_init(pyb_uart_obj_t *uart_obj, uint32_t baudrate) {
return uart_init2(uart_obj);
}
-bool uart_rx_any(pyb_uart_obj_t *uart_obj) {
+mp_uint_t uart_rx_any(pyb_uart_obj_t *uart_obj) {
#if 0
return __HAL_UART_GET_FLAG(&uart_obj->uart, UART_FLAG_RXNE);
#else
- return false;
+ return 0;
#endif
}