static void CheckSpinning(void) { DWORD modechange = (floppymotoron && !g_aFloppyDisk[currdrive].spinning); if (floppymotoron) g_aFloppyDisk[currdrive].spinning = 20000; if (modechange) //FrameRefreshStatus(DRAW_LEDS); FrameDrawDiskLEDS( (HDC)0 ); }
// Called by ControlMotor() & Enable() void Disk2InterfaceCard::CheckSpinning(const ULONG nExecutedCycles) { DWORD modechange = (m_floppyMotorOn && !m_floppyDrive[m_currDrive].m_spinning); if (m_floppyMotorOn) m_floppyDrive[m_currDrive].m_spinning = SPINNING_CYCLES; if (modechange) FrameDrawDiskLEDS( (HDC)0 ); if (modechange) { // Set m_diskLastCycle when motor changes: not spinning (ie. off for 1 sec) -> on CpuCalcCycles(nExecutedCycles); m_diskLastCycle = g_nCumulativeCycles; } }