We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d40a8a commit eda8173Copy full SHA for eda8173
libraries/BlockDevices/SDCardBlockDevice.cpp
@@ -313,7 +313,7 @@ int SDCardBlockDevice::open() {
313
read_block_size = sd_card_info.sector_size_bytes;
314
erase_block_size = sd_card_info.sector_size_bytes;
315
write_block_size = sd_card_info.sector_size_bytes;
316
- total_size = sd_card_info.sector_count * sd_card_info.sector_size_bytes;
+ total_size = (bd_size_t) sd_card_info.sector_count * (bd_size_t) sd_card_info.sector_size_bytes;
317
318
}
319
0 commit comments