From: Michael McMaster Date: Tue, 22 Feb 2022 06:10:02 +0000 (+1000) Subject: Disable direct read code over 128 sectors as it's not reliable X-Git-Tag: v6.4.14~2 X-Git-Url: http://git.codesrc.com/gitweb.cgi?a=commitdiff_plain;h=f7eebee7607184fe6c4d3c81b929a7da7946b6c8;p=SCSI2SD-V6.git Disable direct read code over 128 sectors as it's not reliable --- diff --git a/src/firmware/disk.c b/src/firmware/disk.c index a9d91693..7a4cb8a7 100755 --- a/src/firmware/disk.c +++ b/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); }