8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80fd575 commit f8cabe8Copy full SHA for f8cabe8
ports/rp2/rp2_dma.c
@@ -86,7 +86,7 @@ STATIC const uint32_t rp2_dma_ctrl_field_count = MP_ARRAY_SIZE(rp2_dma_ctrl_fiel
86
STATIC uint32_t rp2_dma_register_value_from_obj(mp_obj_t o, int reg_type) {
87
if (reg_type == REG_TYPE_ADDR_READ || reg_type == REG_TYPE_ADDR_WRITE) {
88
mp_buffer_info_t buf_info;
89
- mp_uint_t flags = MP_BUFFER_READ;
+ mp_uint_t flags = (reg_type == REG_TYPE_ADDR_READ) ? MP_BUFFER_READ : MP_BUFFER_WRITE;
90
if (mp_get_buffer(o, &buf_info, flags)) {
91
return (uint32_t)buf_info.buf;
92
}
0 commit comments