Explorar el Código

Disable direct read code over 128 sectors as it's not reliable

Michael McMaster hace 3 años
padre
commit
6ccf74eec0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      lib/SCSI2SD/src/firmware/disk.c

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

@@ -830,7 +830,8 @@ static void diskDataIn()
 
 #ifdef STM32F4xx
     // Direct mode requires hardware flow control to be working on the SD peripheral
-    if (bytesPerSector == SD_SECTOR_SIZE)
+    // Code isn't currently working above 128 sectors. TODO investigate
+    if (totalSDSectors < 128 && bytesPerSector == SD_SECTOR_SIZE)
     {
         diskDataInDirect(totalSDSectors, sdLBA, useSlowDataCount, &phaseChangeDelayNs);
     }