aboutsummaryrefslogtreecommitdiff
path: root/ports/teensy/uart.c
diff options
context:
space:
mode:
authorDamien George2017-11-01 11:00:30 +1100
committerDamien George2017-11-01 11:00:30 +1100
commit5ae9586541f93065d8dd46862f1f226274c4c5c4 (patch)
tree86079a81d81f24f409e787aafd1f3b01e26c51b7 /ports/teensy/uart.c
parent80e3f07e7f760707f20200b6b6a706308d92158c (diff)
teensy: Get port compiling without any warnings.
Diffstat (limited to 'ports/teensy/uart.c')
-rw-r--r--ports/teensy/uart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/teensy/uart.c b/ports/teensy/uart.c
index 3d5111217..a8cfd63ea 100644
--- a/ports/teensy/uart.c
+++ b/ports/teensy/uart.c
@@ -426,11 +426,13 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_KW(pyb_uart_send_obj, 1, pyb_uart_send);
///
/// Return value: if `recv` is an integer then a new buffer of the bytes received,
/// otherwise the same buffer that was passed in to `recv`.
+#if 0
STATIC const mp_arg_t pyb_uart_recv_args[] = {
{ MP_QSTR_recv, MP_ARG_REQUIRED | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
{ MP_QSTR_timeout, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 5000} },
};
#define PYB_UART_RECV_NUM_ARGS MP_ARRAY_SIZE(pyb_uart_recv_args)
+#endif
STATIC mp_obj_t pyb_uart_recv(uint n_args, const mp_obj_t *args, mp_map_t *kw_args) {
// TODO assumes transmission size is 8-bits wide