Skip to content

Commit

Permalink
codal_port/modaudio: Update to build with latest micropython.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jan 18, 2024
1 parent abc51ec commit 42e386d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codal_port/modaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
);

microbit_audio_frame_obj_t *microbit_audio_frame_make_new(size_t size, uint16_t rate) {
microbit_audio_frame_obj_t *res = m_new_obj_var(microbit_audio_frame_obj_t, uint8_t, size);
microbit_audio_frame_obj_t *res = m_new_obj_var(microbit_audio_frame_obj_t, data, uint8_t, size);
res->base.type = &microbit_audio_frame_type;
res->alloc_size = size;
res->used_size = 0;
Expand Down

0 comments on commit 42e386d

Please sign in to comment.