minimig: fix fdd corruption upon write.

This commit is contained in:
sorgelig
2020-07-13 02:57:47 +08:00
parent 673a65dec3
commit 0b629ae55c

View File

@@ -562,7 +562,8 @@ void WriteTrack(adfTYPE *drive)
unsigned long lba = drive->track * SECTOR_COUNT;
drive->track_prev = drive->track + 1; // just to force next read from the start of current track
// drive->track_prev = drive->track + 1; // This causes a read that directly follows a write to the previous track to return bad data.
drive->track_prev = -1; // just to force next read from the start of current track
while (FindSync(drive))
{