Skip to content

Commit

Permalink
codal_port/modaudio: Fix typecode of AudioFrame buffer to be unsigned.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Apr 30, 2024
1 parent e2ebded commit fe05fba
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 @@ -380,7 +380,7 @@ static mp_int_t audio_frame_get_buffer(mp_obj_t self_in, mp_buffer_info_t *bufin
microbit_audio_frame_obj_t *self = (microbit_audio_frame_obj_t *)self_in;
bufinfo->buf = self->data;
bufinfo->len = self->alloc_size;
bufinfo->typecode = 'b';
bufinfo->typecode = 'B';
if (flags == MP_BUFFER_WRITE) {
// Assume that writing to the buffer will make all data valid for playback.
self->used_size = self->alloc_size;
Expand Down

0 comments on commit fe05fba

Please sign in to comment.