summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/i2c.c')
-rw-r--r--stmhal/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/i2c.c b/stmhal/i2c.c
index 4bbfec3ea8..6ed1eef105 100644
--- a/stmhal/i2c.c
+++ b/stmhal/i2c.c
@@ -79,7 +79,7 @@ STATIC const pyb_i2c_obj_t pyb_i2c_obj[PYB_NUM_I2C] = {{{&pyb_i2c_type}, &I2cHan
STATIC mp_obj_t pyb_i2c_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) {
// check arguments
- mp_check_nargs(n_args, 1, 1, n_kw, false);
+ mp_arg_check_num(n_args, n_kw, 1, 1, false);
// get i2c number
machine_int_t i2c_id = mp_obj_get_int(args[0]) - 1;