mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2025-01-14 06:30:00 +00:00
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…
x
Reference in New Issue
Block a user