rp2pio: Allow background_write(None) to terminate after complete loop
This commit is contained in:
parent
a9d929627a
commit
1a9034ff7c
@ -917,7 +917,7 @@ bool common_hal_rp2pio_statemachine_background_write(rp2pio_statemachine_obj_t *
|
||||
self->loop = *loop;
|
||||
self->pending_buffers = pending_buffers;
|
||||
|
||||
if (self->dma_completed) {
|
||||
if (self->dma_completed && self->once.info.len) {
|
||||
rp2pio_statemachine_dma_complete(self, SM_DMA_GET_CHANNEL(pio_index, sm));
|
||||
self->dma_completed = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user