Merge pull request #1578 from skidau/Fix-Fast-Disc-Speed
Fixed the fast disc speed option (immediately service the interrupt instead of going through the scheduler).
This commit is contained in:
commit
da962a3d2b
|
@ -1046,8 +1046,19 @@ void ExecuteCommand()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The transfer is finished after a delay
|
if (ticks_until_TC)
|
||||||
CoreTiming::ScheduleEvent((int)ticks_until_TC, tc);
|
{
|
||||||
|
// The transfer is finished after a delay
|
||||||
|
CoreTiming::ScheduleEvent((int)ticks_until_TC, tc);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// transfer is done
|
||||||
|
m_DICR.TSTART = 0;
|
||||||
|
m_DILENGTH.Length = 0;
|
||||||
|
GenerateDIInterrupt(INT_TCINT);
|
||||||
|
g_ErrorCode = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simulates the timing aspects of reading data from a disc.
|
// Simulates the timing aspects of reading data from a disc.
|
||||||
|
|
Loading…
Reference in New Issue