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/irq.c | |
parent | 53ca6ae1f362da99b5913505a53904d22f460c63 (diff) |
py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.
Diffstat (limited to 'stmhal/irq.c')
-rw-r--r-- | stmhal/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/irq.c b/stmhal/irq.c index d0d89b394..7a265a52b 100644 --- a/stmhal/irq.c +++ b/stmhal/irq.c @@ -48,7 +48,7 @@ MP_DEFINE_CONST_FUN_OBJ_0(pyb_wfi_obj, pyb_wfi); /// respectively. This return value can be passed to enable_irq to restore /// the IRQ to its original state. STATIC mp_obj_t pyb_disable_irq(void) { - return MP_BOOL(disable_irq() == IRQ_STATE_ENABLED); + return mp_obj_new_bool(disable_irq() == IRQ_STATE_ENABLED); } MP_DEFINE_CONST_FUN_OBJ_0(pyb_disable_irq_obj, pyb_disable_irq); |