diff options
Diffstat (limited to 'stmhal/pin.c')
-rw-r--r-- | stmhal/pin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/pin.c b/stmhal/pin.c index 3230c8f47b..3a1a0a2dee 100644 --- a/stmhal/pin.c +++ b/stmhal/pin.c @@ -161,7 +161,7 @@ STATIC mp_obj_t pin_obj_init(uint n_args, mp_obj_t *args); // Pin constructor STATIC mp_obj_t pin_make_new(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_t *args) { - mp_check_nargs(n_args, 1, 3, n_kw, false); + mp_arg_check_num(n_args, n_kw, 1, 3, false); // Run an argument through the mapper and return the result. const pin_obj_t *pin = pin_find(args[0]); |