@@ -384,8 +384,6 @@ STATIC mp_obj_t busio_uart_obj_reset_input_buffer(mp_obj_t self_in) {
384384 return mp_const_none ;
385385}
386386STATIC MP_DEFINE_CONST_FUN_OBJ_1 (busio_uart_reset_input_buffer_obj , busio_uart_obj_reset_input_buffer );
387- #endif // CIRCUITPY_BUSIO_UART
388-
389387//| class Parity:
390388//| """Enum-like class to define the parity used to verify correct data transfer."""
391389//|
@@ -427,6 +425,8 @@ MP_DEFINE_CONST_OBJ_TYPE(
427425 locals_dict , & busio_uart_parity_locals_dict
428426 );
429427
428+ #endif // CIRCUITPY_BUSIO_UART
429+
430430STATIC const mp_rom_map_elem_t busio_uart_locals_dict_table [] = {
431431 #if CIRCUITPY_BUSIO_UART
432432 { MP_ROM_QSTR (MP_QSTR___del__ ), MP_ROM_PTR (& busio_uart_deinit_obj ) },
@@ -446,10 +446,11 @@ STATIC const mp_rom_map_elem_t busio_uart_locals_dict_table[] = {
446446 { MP_ROM_QSTR (MP_QSTR_baudrate ), MP_ROM_PTR (& busio_uart_baudrate_obj ) },
447447 { MP_ROM_QSTR (MP_QSTR_in_waiting ), MP_ROM_PTR (& busio_uart_in_waiting_obj ) },
448448 { MP_ROM_QSTR (MP_QSTR_timeout ), MP_ROM_PTR (& busio_uart_timeout_obj ) },
449- #endif // CIRCUITPY_BUSIO_UART
450449
451450 // Nested Enum-like Classes.
452451 { MP_ROM_QSTR (MP_QSTR_Parity ), MP_ROM_PTR (& busio_uart_parity_type ) },
452+ #endif // CIRCUITPY_BUSIO_UART
453+
453454};
454455STATIC MP_DEFINE_CONST_DICT (busio_uart_locals_dict , busio_uart_locals_dict_table );
455456
0 commit comments