From 916bd92b0cf8c46101d5d1ab88308593d6090e0e Mon Sep 17 00:00:00 2001 From: microDev <70126934+microDev1@users.noreply.github.com> Date: Tue, 13 Jul 2021 08:56:18 +0530 Subject: [PATCH] update native_uart implementation --- shared-bindings/busio/UART.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared-bindings/busio/UART.c b/shared-bindings/busio/UART.c index 1e9f6f4a52..bd97910192 100644 --- a/shared-bindings/busio/UART.c +++ b/shared-bindings/busio/UART.c @@ -145,8 +145,8 @@ STATIC mp_obj_t busio_uart_make_new(const mp_obj_type_t *type, size_t n_args, co // Helper to ensure we have the native super class instead of a subclass. -busio_uart_obj_t* native_uart(mp_obj_t uart_obj) { - mp_obj_t native_uart = mp_instance_cast_to_native_base(uart_obj, &busio_uart_type); +busio_uart_obj_t *native_uart(mp_obj_t uart_obj) { + mp_obj_t native_uart = mp_obj_cast_to_native_base(uart_obj, &busio_uart_type); if (native_uart == MP_OBJ_NULL) { mp_raise_ValueError_varg(translate("Must be a %q subclass."), MP_QSTR_UART); }