Fix for junk in FormatTrack::m_VolTrkSecChk4and4[8]

Need to reset FormatTrack state when track changes.
This commit is contained in:
tomcw 2023-05-01 14:45:56 +01:00
parent 10901fc483
commit 2b8ad28ff7
1 changed files with 1 additions and 5 deletions

View File

@ -677,7 +677,7 @@ void Disk2InterfaceCard::ControlStepperDeferred(void)
FlushCurrentTrack(m_currDrive);
pDrive->m_phasePrecise = newPhasePrecise;
pFloppy->m_trackimagedata = false;
m_formatTrack.DriveNotWritingTrack();
m_formatTrack.Reset();
GetFrame().FrameDrawDiskStatus(); // Show track status (GH#201)
}
@ -1511,10 +1511,6 @@ void Disk2InterfaceCard::DataLatchReadWOZ(WORD pc, WORD addr, UINT bitCellRemain
}
} // for
// GH #1215 Handle. WOZ VTSC
if (m_floppyLatch & 0x80)
m_formatTrack.DecodeLatchNibbleRead(m_floppyLatch);
#if LOG_DISK_NIBBLES_READ
if (m_floppyLatch & 0x80)
{