Skip to content

Commit a528b1e

Browse files
committed
codal_port/modaudio: Update to build with latest micropython.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 5fe6307 commit a528b1e

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
@@ -519,7 +519,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
519519
);
520520

521521
microbit_audio_frame_obj_t *microbit_audio_frame_make_new(size_t size, uint32_t rate) {
522-
microbit_audio_frame_obj_t *res = m_new_obj_var(microbit_audio_frame_obj_t, uint8_t, size);
522+
microbit_audio_frame_obj_t *res = m_new_obj_var(microbit_audio_frame_obj_t, data, uint8_t, size);
523523
res->base.type = &microbit_audio_frame_type;
524524
res->alloc_size = size;
525525
res->used_size = 0;

0 commit comments

Comments
 (0)