summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/pin.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-11 12:09:43 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-11 15:18:15 +0300
commit1b586f3a734c27c78080fb2173bbde17168cb9e4 (patch)
tree7f7745881473f84a8d10b0b43a45a4c009342406 /stmhal/pin.c
parent53ca6ae1f362da99b5913505a53904d22f460c63 (diff)
downloadmicropython-1b586f3a734c27c78080fb2173bbde17168cb9e4.tar.gz
micropython-1b586f3a734c27c78080fb2173bbde17168cb9e4.zip
py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.
Diffstat (limited to 'stmhal/pin.c')
-rw-r--r--stmhal/pin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/pin.c b/stmhal/pin.c
index 8ba6cce8ea..9f40b11d67 100644
--- a/stmhal/pin.c
+++ b/stmhal/pin.c
@@ -305,7 +305,7 @@ STATIC mp_obj_t pin_debug(mp_uint_t n_args, const mp_obj_t *args) {
pin_class_debug = mp_obj_is_true(args[1]);
return mp_const_none;
}
- return MP_BOOL(pin_class_debug);
+ return mp_obj_new_bool(pin_class_debug);
}
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pin_debug_fun_obj, 1, 2, pin_debug);
STATIC MP_DEFINE_CONST_CLASSMETHOD_OBJ(pin_debug_obj, (mp_obj_t)&pin_debug_fun_obj);