1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-26 11:42:09 +00:00

nyx: Fix an issue with hos partition initial size

This commit is contained in:
CTCaer 2020-06-14 13:07:21 +03:00
parent 465955c8f5
commit 7b76015fd1

View file

@ -2112,6 +2112,9 @@ lv_res_t create_window_partition_manager(lv_obj_t *btn)
part_info.total_sct = sd_storage.sec_cnt;
u32 extra_sct = 0x8000 + 0x400000; // Reserved 16MB alignment for FAT partition + 2GB.
// Set initial HOS partition size, so the correct cluster size can be selected.
part_info.hos_size = (part_info.total_sct >> 11) - 16; // Important if there's no slider change.
// Read current MBR.
mbr_t mbr = { 0 };
sdmmc_storage_read(&sd_storage, 0, 1, &mbr);