Add 10ms delay to seek command
authorMichael McMaster <michael@codesrc.com>
Sat, 2 Mar 2019 05:11:50 +0000 (15:11 +1000)
committerMichael McMaster <michael@codesrc.com>
Sat, 2 Mar 2019 05:11:50 +0000 (15:11 +1000)
src/firmware/disk.c

index 89db179..55eecdc 100755 (executable)
@@ -294,6 +294,10 @@ static void doSeek(uint32_t lba)
                scsiDev.target->sense.asc = LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE;\r
                scsiDev.phase = STATUS;\r
        }\r
+       else\r
+       {\r
+               s2s_delay_ms(10);\r
+       }\r
 }\r
 \r
 static int doTestUnitReady()\r