Skip to content

Commit

Permalink
limit USB dma counter emulation to 16bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonaitis committed Aug 5, 2024
1 parent 0e21487 commit 561003c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/comms/USB/USBDMAEmulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ void USBDMAEmulation::UpdateProducerStates()
pendingXfers.pop();
transfers.push(async);
++counters.transfersCompleted;
counters.transfersCompleted &= 0xFFFF;
}
if (!continuous)
return;
Expand Down

0 comments on commit 561003c

Please sign in to comment.