Skip to content

Commit 3639146

Browse files
committed
codal_port/microbit_audiorecording: Make track() args positional.
Signed-off-by: Damien George <[email protected]>
1 parent 52ab8b2 commit 3639146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codal_port/microbit_audiorecording.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ static MP_DEFINE_CONST_FUN_OBJ_1(microbit_audio_recording_copy_obj, microbit_aud
7878
static mp_obj_t microbit_audio_recording_track(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
7979
enum { ARG_start_ms, ARG_end_ms };
8080
static const mp_arg_t allowed_args[] = {
81-
{ MP_QSTR_start_ms, MP_ARG_KW_ONLY, {.u_rom_obj = MP_ROM_INT(0)} },
82-
{ MP_QSTR_end_ms, MP_ARG_KW_ONLY, {.u_rom_obj = MP_ROM_INT(-1)} },
81+
{ MP_QSTR_start_ms, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_INT(0)} },
82+
{ MP_QSTR_end_ms, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_INT(-1)} },
8383
};
8484
// parse args
8585
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];

0 commit comments

Comments
 (0)