Skip to content

Commit c7f64c1

Browse files
committed
codal_port/modaudio: Fix typecode of AudioFrame buffer to be unsigned.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 0441aa2 commit c7f64c1

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
@@ -380,7 +380,7 @@ static mp_int_t audio_frame_get_buffer(mp_obj_t self_in, mp_buffer_info_t *bufin
380380
microbit_audio_frame_obj_t *self = (microbit_audio_frame_obj_t *)self_in;
381381
bufinfo->buf = self->data;
382382
bufinfo->len = self->alloc_size;
383-
bufinfo->typecode = 'b';
383+
bufinfo->typecode = 'B';
384384
if (flags == MP_BUFFER_WRITE) {
385385
// Assume that writing to the buffer will make all data valid for playback.
386386
self->used_size = self->alloc_size;

0 commit comments

Comments
 (0)