projects
/
SCSI2SD-V6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
304f5ac
)
Fix SD card hotswap bug when the SCSI host is constantly polling
author
Michael McMaster
<michael@codesrc.com>
Mon, 27 May 2019 10:00:59 +0000
(20:00 +1000)
committer
Michael McMaster
<michael@codesrc.com>
Mon, 27 May 2019 10:00:59 +0000
(20:00 +1000)
src/firmware/main.c
patch
|
blob
|
blame
|
history
diff --git
a/src/firmware/main.c
b/src/firmware/main.c
index fea166ccdfb899e30d0018552240d5af19147952..ed37b5cc61b151740a96e3310cfb0536bda00e71 100755
(executable)
--- a/
src/firmware/main.c
+++ b/
src/firmware/main.c
@@
-161,7
+161,7
@@
void mainLoop()
#endif
\r
}
\r
}
\r
- else if (
scsiDev.phase >= 0
)
\r
+ else if (
(scsiDev.phase >= 0) && (blockDev.state & DISK_PRESENT)
)
\r
{
\r
// don't waste time scanning SD cards while we're doing disk IO
\r
lastSDPoll = s2s_getTime_ms();
\r