Skip to content

Commit 61a3fd2

Browse files
committed
codal_port/modaudio: Update to build with latest micropython.
Signed-off-by: Damien George <[email protected]>
1 parent 26e9993 commit 61a3fd2

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
@@ -522,7 +522,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
522522
);
523523

524524
microbit_audio_frame_obj_t *microbit_audio_frame_make_new(size_t size, uint32_t rate) {
525-
microbit_audio_frame_obj_t *res = m_new_obj_var(microbit_audio_frame_obj_t, uint8_t, size);
525+
microbit_audio_frame_obj_t *res = m_new_obj_var(microbit_audio_frame_obj_t, data, uint8_t, size);
526526
res->base.type = &microbit_audio_frame_type;
527527
res->alloc_size = size;
528528
res->used_size = 0;

0 commit comments

Comments
 (0)