Permalink
Browse files

GUS: Print warning if a DMA transfer is started while the channel is …

…masked
  • Loading branch information...
joncampbell123 committed Jul 10, 2018
1 parent 5875ce4 commit a41f43ca4d59be2c601a6d696255f8e541b161d6
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/hardware/gus.cpp
@@ -1835,6 +1835,9 @@ void GUS_StartDMA() {
LOG(LOG_MISC,LOG_DEBUG)("GUS: Starting DMA transfer interval");
PIC_AddEvent(GUS_DMA_Event,GUS_DMA_Event_interval_init);
if (GetDMAChannel(myGUS.dma1)->masked)
LOG(LOG_MISC,LOG_WARN)("GUS: DMA transfer interval started when channel is masked");
if (gus_warn_dma_conflict)
LOG(LOG_MISC,LOG_WARN)(
"GUS warning: Both DMA channels set to the same channel WITHOUT combining! "

0 comments on commit a41f43c

Please sign in to comment.