@@ -588,7 +588,7 @@ STATIC mp_obj_t pyb_usb_hid_recv(size_t n_args, const mp_obj_t *args, mp_map_t *
588588 };
589589
590590 // parse args
591- pyb_usb_vcp_obj_t * self = MP_OBJ_TO_PTR (args [0 ]);
591+ pyb_usb_hid_obj_t * self = MP_OBJ_TO_PTR (args [0 ]);
592592 mp_arg_val_t vals [MP_ARRAY_SIZE (allowed_args )];
593593 mp_arg_parse_all (n_args - 1 , args + 1 , kw_args , MP_ARRAY_SIZE (allowed_args ), allowed_args , vals );
594594
@@ -610,7 +610,7 @@ STATIC mp_obj_t pyb_usb_hid_recv(size_t n_args, const mp_obj_t *args, mp_map_t *
610610STATIC MP_DEFINE_CONST_FUN_OBJ_KW (pyb_usb_hid_recv_obj , 1 , pyb_usb_hid_recv );
611611
612612STATIC mp_obj_t pyb_usb_hid_send (mp_obj_t self_in , mp_obj_t report_in ) {
613- pyb_usb_vcp_obj_t * self = MP_OBJ_TO_PTR (self_in );
613+ pyb_usb_hid_obj_t * self = MP_OBJ_TO_PTR (self_in );
614614 mp_buffer_info_t bufinfo ;
615615 byte temp_buf [8 ];
616616 // get the buffer to send from
@@ -652,7 +652,7 @@ STATIC const mp_rom_map_elem_t pyb_usb_hid_locals_dict_table[] = {
652652STATIC MP_DEFINE_CONST_DICT (pyb_usb_hid_locals_dict , pyb_usb_hid_locals_dict_table );
653653
654654STATIC mp_uint_t pyb_usb_hid_ioctl (mp_obj_t self_in , mp_uint_t request , mp_uint_t arg , int * errcode ) {
655- pyb_usb_vcp_obj_t * self = MP_OBJ_TO_PTR (self_in );
655+ pyb_usb_hid_obj_t * self = MP_OBJ_TO_PTR (self_in );
656656 mp_uint_t ret ;
657657 if (request == MP_STREAM_POLL ) {
658658 mp_uint_t flags = arg ;
0 commit comments