1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-01-11 23:43:04 +00:00

Merge pull request #60 from mist-devel/robinsonb5-sdcard-capacity

Fix detection of SD card capacity for blocksize > 512
This commit is contained in:
Till Harbaum 2020-09-13 14:08:13 +02:00 committed by GitHub
commit 2b6518557f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
mmc.c
View File

@ -332,6 +332,7 @@ unsigned long MMC_GetCapacity()
cmult|=(CSDData[10]>>7) & 1;
++result;
result<<=cmult+2;
result*=blocksize; // Scale by the number of 512-byte chunks per block.
return(result);
}
}