Skip to content

Commit f3db1e6

Browse files
committed
codal_port/modlog: Fix bug with positional args to log.delete.
Previously, positional arguments would be completely ignored. Signed-off-by: Damien George <[email protected]>
1 parent 009fbd2 commit f3db1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codal_port/modlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ STATIC mp_obj_t log_delete(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw
8888
};
8989

9090
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
91-
mp_arg_parse_all(0, NULL, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
91+
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
9292

9393
microbit_hal_log_delete(args[ARG_full].u_bool);
9494

0 commit comments

Comments
 (0)