bdk: sdmmc: add defines for max block number

This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 09:54:06 +01:00
1 parent facd5c9ae9
commit 61cb77a016
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -327,7 +327,7 @@ static int _sdmmc_storage_readwrite(sdmmc_storage_t *storage, u32 sector, u32 nu
do
{
reinit_try:
if (_sdmmc_storage_readwrite_ex(storage, &blkcnt, sct_off, MIN(sct_total, 0xFFFF), bbuf, is_write))
if (_sdmmc_storage_readwrite_ex(storage, &blkcnt, sct_off, MIN(sct_total, SDMMC_AMAX_BLOCKNUM), bbuf, is_write))
goto out;
else
retries--;