From: Michael McMaster Date: Mon, 27 May 2019 10:00:59 +0000 (+1000) Subject: Fix SD card hotswap bug when the SCSI host is constantly polling X-Git-Tag: v6.2.5~1 X-Git-Url: http://git.codesrc.com/gitweb.cgi?a=commitdiff_plain;h=e4ef7b1c60699e420b8692d62f1147e39aef71b6;p=SCSI2SD-V6.git Fix SD card hotswap bug when the SCSI host is constantly polling --- diff --git a/src/firmware/main.c b/src/firmware/main.c index fea166cc..ed37b5cc 100755 --- a/src/firmware/main.c +++ b/src/firmware/main.c @@ -161,7 +161,7 @@ void mainLoop() #endif } } - 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 = s2s_getTime_ms();