10000 stmhal: Port of f4 hal commit 09de030 to updated f7 hal. · Felipeasg/micropython@8218637 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8218637

Browse files
flowergrassdpgeorge
authored andcommitted
stmhal: Port of f4 hal commit 09de030 to updated f7 hal.
1 parent e1c6ed6 commit 8218637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stmhal/hal/f7/src/stm32f7xx_hal_sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ HAL_SD_ErrorTypedef HAL_SD_Get_CardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTy
15811581
/* Byte 10 */
15821582
tmp = (uint8_t)((hsd->CSD[2] & 0x0000FF00U) >> 8);
15831583

1584-
pCardInfo->CardCapacity = (uint64_t)(((uint64_t)pCardInfo->SD_csd.DeviceSize + 1) * 512 * 1024);
1584+
pCardInfo->CardCapacity = (uint64_t)(((uint64_t)pCardInfo->SD_csd.DeviceSize + 1ULL) * 512 * 1024);
15851585
pCardInfo->CardBlockSize = 512;
15861586
}
15871587
else

0 commit comments

Comments
 (0)
0