diff options
Diffstat (limited to 'stmhal/accel.c')
-rw-r--r-- | stmhal/accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/accel.c b/stmhal/accel.c index e8b73cdfba..c09e64e426 100644 --- a/stmhal/accel.c +++ b/stmhal/accel.c @@ -75,7 +75,7 @@ STATIC pyb_accel_obj_t pyb_accel_obj; STATIC mp_obj_t pyb_accel_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, 0, 0, n_kw, false); + mp_arg_check_num(n_args, n_kw, 0, 0, false); // init accel object pyb_accel_obj.base.type = &pyb_accel_type; |