summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-08-01 15:20:25 -0700
committerDamien George <damien.p.george@gmail.com>2015-08-03 00:49:36 +0100
commit28e51c9eb1f633bb4f0a17e964ef7791d54c913d (patch)
tree2ca3f19dd61a804e57f104cea9277dee650ca01b
parentaf9d885f8cbbe454a8bf655a08c33c775c4838dd (diff)
downloadmicropython-28e51c9eb1f633bb4f0a17e964ef7791d54c913d.tar.gz
micropython-28e51c9eb1f633bb4f0a17e964ef7791d54c913d.zip
stmhal: Port of f4 hal commit 09de030 to f7 hal
-rw-r--r--stmhal/hal/f7/src/stm32f7xx_hal_sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/hal/f7/src/stm32f7xx_hal_sd.c b/stmhal/hal/f7/src/stm32f7xx_hal_sd.c
index 4aa28dbfdf..d7ea7d01f5 100644
--- a/stmhal/hal/f7/src/stm32f7xx_hal_sd.c
+++ b/stmhal/hal/f7/src/stm32f7xx_hal_sd.c
@@ -1557,7 +1557,7 @@ HAL_SD_ErrorTypedef HAL_SD_Get_CardInfo(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTy
/* Byte 10 */
tmp = (uint8_t)((hsd->CSD[2] & 0x0000FF00) >> 8);
- pCardInfo->CardCapacity = ((pCardInfo->SD_csd.DeviceSize + 1)) * 512 * 1024;
+ pCardInfo->CardCapacity = ((pCardInfo->SD_csd.DeviceSize + 1ULL)) * 512 * 1024;
pCardInfo->CardBlockSize = 512;
}
else