diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-11 12:09:43 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-11 15:18:15 +0300 |
commit | 1b586f3a734c27c78080fb2173bbde17168cb9e4 (patch) | |
tree | 7f7745881473f84a8d10b0b43a45a4c009342406 /stmhal/usb.c | |
parent | 53ca6ae1f362da99b5913505a53904d22f460c63 (diff) | |
download | micropython-1b586f3a734c27c78080fb2173bbde17168cb9e4.tar.gz micropython-1b586f3a734c27c78080fb2173bbde17168cb9e4.zip |
py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.
Diffstat (limited to 'stmhal/usb.c')
-rw-r--r-- | stmhal/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/usb.c b/stmhal/usb.c index cedd3525c7..ebd2433d26 100644 --- a/stmhal/usb.c +++ b/stmhal/usb.c @@ -363,7 +363,7 @@ STATIC mp_obj_t pyb_usb_vcp_setinterrupt(mp_obj_t self_in, mp_obj_t int_chr_in) STATIC MP_DEFINE_CONST_FUN_OBJ_2(pyb_usb_vcp_setinterrupt_obj, pyb_usb_vcp_setinterrupt); STATIC mp_obj_t pyb_usb_vcp_isconnected(mp_obj_t self_in) { - return MP_BOOL(USBD_CDC_IsConnected()); + return mp_obj_new_bool(USBD_CDC_IsConnected()); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_usb_vcp_isconnected_obj, pyb_usb_vcp_isconnected); |