dbdma: fix cmd.resCount update.

This commit is contained in:
Maxim Poliakovski 2024-07-22 17:16:36 +02:00
parent 9fc5bbb951
commit babd8d974f

View File

@ -195,8 +195,7 @@ void DMAChannel::finish_cmd() {
// all INPUT and OUTPUT commands including LOAD_QUAD and STORE_QUAD update cmd.resCount
if (this->cur_cmd < DBDMA_Cmd::NOP && res.is_writable) {
WRITE_WORD_LE_A(&cmd_desc[12], this->res_count);
this->queue_len = 0;
WRITE_WORD_LE_A(&cmd_desc[12], this->queue_len);
this->res_count = 0;
}