dbdma: Make sure interrupt controller is set.

This commit is contained in:
joevt 2023-10-17 20:32:46 -07:00 committed by dingusdev
parent 503556196a
commit df0044a110
1 changed files with 4 additions and 1 deletions

View File

@ -258,7 +258,10 @@ void DMAChannel::update_irq() {
}
}
if (cond) {
this->int_ctrl->ack_dma_int(this->irq_id, 1);
if (int_ctrl)
this->int_ctrl->ack_dma_int(this->irq_id, 1);
else
LOG_F(ERROR, "%s Interrupt ignored", this->get_name().c_str());
}
}
}