Browse Source

Slight write speed improvement

Michael McMaster 4 năm trước cách đây
mục cha
commit
4a653564a1
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      lib/SCSI2SD/src/firmware/disk.c

+ 2 - 1
lib/SCSI2SD/src/firmware/disk.c

@@ -782,7 +782,8 @@ void scsiDiskPoll()
         			}
 
                     if (((prep - j) < maxSectors) &&
-                        (prep < sectors))
+                        (prep < sectors) &&
+                        scsiFifoReady())
                     {
     				    scsiReadPIO(
         					&scsiDev.data[(prep % maxSectors) * SD_SECTOR_SIZE],