Skip to content

Commit

Permalink
direct access: Clear the write-protect line when entering direct-acce…
Browse files Browse the repository at this point in the history
…ss mode

Otherwise host command writes are ignored.

Fixes #596
  • Loading branch information
keirf committed Jul 29, 2022
1 parent 2631e0b commit 8561197
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/floppy_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ static void floppy_mount(struct slot *slot)
if (in_da_mode(im, cyl)) {
volume_cache_destroy(); /* Clean up after other image format. */
image_open(im, slot, cltbl, TRUE);
/* Remove write-protect when driven into D-A mode. */
drive_change_output(drv, outp_wrprot, FALSE);
}
}
#endif
Expand Down

0 comments on commit 8561197

Please sign in to comment.