Skip to content

Commit

Permalink
bugfix: Fix zero length disk dma not finishing when dsksync is detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Dec 27, 2023
1 parent 438fec7 commit cb9465b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4235,7 +4235,12 @@ static void wordsync_detected(bool startup)
if (dskdmaen != DSKDMA_OFF) {
int prev_dma_enabled = dma_enable;
if (!startup) {
dma_enable = 1;
if (!dma_enable) {
dma_enable = 1;
if (dsklength == 0) {
disk_dmafinished();
}
}
}
if (disk_debug_logging) {
int pos = -1;
Expand Down

0 comments on commit cb9465b

Please sign in to comment.