Skip to content

Commit a1bcf05

Browse files
committed
codal_port/modaudio: Fix default pin for audio.play.
1 parent 40e9bb6 commit a1bcf05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codal_port/modaudio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ STATIC mp_obj_t play(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_ar
155155
static const mp_arg_t allowed_args[] = {
156156
{ MP_QSTR_source, MP_ARG_REQUIRED | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} },
157157
{ MP_QSTR_wait, MP_ARG_BOOL, {.u_bool = true} },
158-
{ MP_QSTR_pin, MP_ARG_OBJ, {.u_obj = mp_const_none } },
158+
{ MP_QSTR_pin, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_PTR(&microbit_pin_default_audio_obj)} },
159159
{ MP_QSTR_return_pin, MP_ARG_OBJ, {.u_obj = mp_const_none } },
160160
};
161161
// parse args

0 commit comments

Comments
 (0)