dbdma: Clear cmd_in_progress before callback.

Because the callback might start DMA commands.
This commit is contained in:
joevt 2023-10-30 19:06:03 -07:00 committed by dingusdev
parent df0044a110
commit bc582e64cc
1 changed files with 2 additions and 2 deletions

View File

@ -467,11 +467,11 @@ void DMAChannel::start() {
this->queue_len = 0;
this->cmd_in_progress = false;
if (this->start_cb)
this->start_cb();
this->cmd_in_progress = false;
// some DBDMA programs contain commands that don't transfer data
// between a device and memory (LOAD_QUAD, STORE_QUAD, NOP and STOP).
// We thus interprete the DBDMA program until a data transfer between