Fix SD card hotswap bug when the SCSI host is constantly polling

This commit is contained in:
Michael McMaster 2019-05-27 20:02:08 +10:00
parent 561f2903e9
commit 38597c1f25
1 changed files with 1 additions and 1 deletions

View File

@ -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();