diff options
Diffstat (limited to 'stm/audio.c')
-rw-r--r-- | stm/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stm/audio.c b/stm/audio.c index e9e872813a..36fa77c428 100644 --- a/stm/audio.c +++ b/stm/audio.c @@ -127,8 +127,8 @@ mp_obj_t pyb_audio_dma(uint n_args, const mp_obj_t *args, mp_map_t *kw_args) { if (type->buffer_p.get_buffer == NULL) { nlr_raise(mp_obj_new_exception_msg(&mp_type_TypeError, "buffer argument must support buffer protocol")); } - buffer_info_t bufinfo; - type->buffer_p.get_buffer(args[1], &bufinfo, BUFFER_READ); + mp_buffer_info_t bufinfo; + type->buffer_p.get_buffer(args[1], &bufinfo, MP_BUFFER_READ); RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_DMA1, ENABLE); |