Fix SD card hotswap bug when the SCSI host is constantly polling
This commit is contained in:
parent
561f2903e9
commit
38597c1f25
|
@ -94,7 +94,7 @@ int main()
|
|||
CyExitCriticalSection(interruptState);
|
||||
}
|
||||
}
|
||||
else if (scsiDev.phase >= 0)
|
||||
else if ((scsiDev.phase >= 0) && (blockDev.state & DISK_PRESENT))
|
||||
{
|
||||
// don't waste time scanning SD cards while we're doing disk IO
|
||||
lastSDPoll = getTime_ms();
|
||||
|
|
Loading…
Reference in New Issue