From 36391465bf97dcfb84fa9afac5aa17de37784ea7 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 26 Aug 2024 11:11:36 +1000 Subject: [PATCH] codal_port/microbit_audiorecording: Make track() args positional. Signed-off-by: Damien George --- src/codal_port/microbit_audiorecording.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codal_port/microbit_audiorecording.c b/src/codal_port/microbit_audiorecording.c index 2b3422d..6de7974 100644 --- a/src/codal_port/microbit_audiorecording.c +++ b/src/codal_port/microbit_audiorecording.c @@ -78,8 +78,8 @@ static MP_DEFINE_CONST_FUN_OBJ_1(microbit_audio_recording_copy_obj, microbit_aud static mp_obj_t microbit_audio_recording_track(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { enum { ARG_start_ms, ARG_end_ms }; static const mp_arg_t allowed_args[] = { - { MP_QSTR_start_ms, MP_ARG_KW_ONLY, {.u_rom_obj = MP_ROM_INT(0)} }, - { MP_QSTR_end_ms, MP_ARG_KW_ONLY, {.u_rom_obj = MP_ROM_INT(-1)} }, + { MP_QSTR_start_ms, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_INT(0)} }, + { MP_QSTR_end_ms, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_INT(-1)} }, }; // parse args mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];