Slight write speed improvement v6.4.4
authorMichael McMaster <michael@codesrc.com>
Sat, 8 May 2021 09:44:53 +0000 (19:44 +1000)
committerMichael McMaster <michael@codesrc.com>
Sat, 8 May 2021 09:44:53 +0000 (19:44 +1000)
src/firmware/disk.c

index 666836503be6e9372b66471feb85a4bce5d83162..a0bcf491600c3ed3965c6e18a8695325010c8a9d 100755 (executable)
@@ -782,7 +782,8 @@ void scsiDiskPoll()
                                }\r
 \r
                     if (((prep - j) < maxSectors) &&\r
-                        (prep < sectors))\r
+                        (prep < sectors) &&\r
+                        scsiFifoReady())\r
                     {\r
                                    scsiReadPIO(\r
                                                &scsiDev.data[(prep % maxSectors) * SD_SECTOR_SIZE],\r