sc53c94: Check drq_cb.

This commit is contained in:
joevt 2023-12-18 01:16:03 -08:00 committed by dingusdev
parent 782a8d2c3c
commit 61576d4032

View File

@ -484,7 +484,8 @@ void Sc53C94::sequencer()
break;
case SeqState::SEND_MSG:
if (this->data_fifo_pos < 1 && this->is_dma_cmd) {
this->drq_cb(1);
if (this->drq_cb)
this->drq_cb(1);
this->int_status = INTSTAT_SR;
this->update_irq();
break;
@ -494,7 +495,8 @@ void Sc53C94::sequencer()
break;
case SeqState::SEND_CMD:
if (this->data_fifo_pos < 1 && this->is_dma_cmd) {
this->drq_cb(1);
if (this->drq_cb)
this->drq_cb(1);
this->int_status |= INTSTAT_SR;
this->update_irq();
break;