summaryrefslogtreecommitdiffstatshomepage
path: root/teensy/modpyb.c
diff options
context:
space:
mode:
Diffstat (limited to 'teensy/modpyb.c')
-rw-r--r--teensy/modpyb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/teensy/modpyb.c b/teensy/modpyb.c
index a59e3b4f57..7a40580ed1 100644
--- a/teensy/modpyb.c
+++ b/teensy/modpyb.c
@@ -248,7 +248,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(pyb_standby_obj, pyb_standby);
/// \function have_cdc()
/// Return True if USB is connected as a serial device, False otherwise.
STATIC mp_obj_t pyb_have_cdc(void ) {
- return MP_BOOL(usb_vcp_is_connected());
+ return mp_obj_new_bool(usb_vcp_is_connected());
}
STATIC MP_DEFINE_CONST_FUN_OBJ_0(pyb_have_cdc_obj, pyb_have_cdc);