Skip to content

Commit 3bb7efc

Browse files
committed
stmhal: Hookup USB_VCP.any().
Thanks to Dave Hylands for this patch.
1 parent cd021bf commit 3bb7efc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

stmhal/usb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ mp_obj_t pyb_usb_vcp___exit__(uint n_args, const mp_obj_t *args) {
255255
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pyb_usb_vcp___exit___obj, 4, 4, pyb_usb_vcp___exit__);
256256

257257
STATIC const mp_map_elem_t pyb_usb_vcp_locals_dict_table[] = {
258+
{ MP_OBJ_NEW_QSTR(MP_QSTR_any), (mp_obj_t)&pyb_usb_vcp_any_obj },
258259
{ MP_OBJ_NEW_QSTR(MP_QSTR_send), (mp_obj_t)&pyb_usb_vcp_send_obj },
259260
{ MP_OBJ_NEW_QSTR(MP_QSTR_recv), (mp_obj_t)&pyb_usb_vcp_recv_obj },
260261
/// \method read([nbytes])

0 commit comments

Comments
 (0)