diff options
author | Damien George <damien.p.george@gmail.com> | 2014-08-26 14:18:22 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-08-26 14:18:22 +0100 |
commit | 3bb7efc943062052606d307773841d662ab3b2d5 (patch) | |
tree | 628a08a893c64319e82d404dcebd3da488c665ec | |
parent | cd021bfe5698d2b466f07f13365240a1a116b0a4 (diff) | |
download | micropython-3bb7efc943062052606d307773841d662ab3b2d5.tar.gz micropython-3bb7efc943062052606d307773841d662ab3b2d5.zip |
stmhal: Hookup USB_VCP.any().
Thanks to Dave Hylands for this patch.
-rw-r--r-- | stmhal/usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/usb.c b/stmhal/usb.c index 40c474f432..a4369ff4cd 100644 --- a/stmhal/usb.c +++ b/stmhal/usb.c @@ -255,6 +255,7 @@ mp_obj_t pyb_usb_vcp___exit__(uint n_args, const mp_obj_t *args) { STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pyb_usb_vcp___exit___obj, 4, 4, pyb_usb_vcp___exit__); STATIC const mp_map_elem_t pyb_usb_vcp_locals_dict_table[] = { + { MP_OBJ_NEW_QSTR(MP_QSTR_any), (mp_obj_t)&pyb_usb_vcp_any_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_send), (mp_obj_t)&pyb_usb_vcp_send_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_recv), (mp_obj_t)&pyb_usb_vcp_recv_obj }, /// \method read([nbytes]) |