Skip to content

Commit 916bd92

Browse files
authored
update native_uart implementation
1 parent fc975d6 commit 916bd92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-bindings/busio/UART.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ STATIC mp_obj_t busio_uart_make_new(const mp_obj_type_t *type, size_t n_args, co
145145

146146

147147
// Helper to ensure we have the native super class instead of a subclass.
148-
busio_uart_obj_t* native_uart(mp_obj_t uart_obj) {
149-
mp_obj_t native_uart = mp_instance_cast_to_native_base(uart_obj, &busio_uart_type);
148+
busio_uart_obj_t *native_uart(mp_obj_t uart_obj) {
149+
mp_obj_t native_uart = mp_obj_cast_to_native_base(uart_obj, &busio_uart_type);
150150
if (native_uart == MP_OBJ_NULL) {
151151
mp_raise_ValueError_varg(translate("Must be a %q subclass."), MP_QSTR_UART);
152152
}

0 commit comments

Comments
 (0)