Slight write speed improvement master 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 6668365..a0bcf49 100755 (executable)
@@ -782,7 +782,8 @@ void scsiDiskPoll()
                                }\r
 \r
                     if (((prep - j) < maxSectors) &&\r
                                }\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
                     {\r
                                    scsiReadPIO(\r
                                                &scsiDev.data[(prep % maxSectors) * SD_SECTOR_SIZE],\r