mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-10 04:21:45 +00:00
nyx: Allow fix hybrid mbr tool to always run
This commit is contained in:
parent
8ccc47dfa5
commit
a25c82a8ce
2 changed files with 7 additions and 1 deletions
|
@ -2017,7 +2017,8 @@ static lv_res_t _action_fix_mbr(lv_obj_t *btn)
|
|||
lv_obj_t *lbl_status = lv_label_create(mbox, NULL);
|
||||
lv_label_set_recolor(lbl_status, true);
|
||||
|
||||
if (!sd_mount())
|
||||
// Try to init sd card. No need for valid MBR.
|
||||
if (!sd_mount() && !sd_get_card_initialized())
|
||||
{
|
||||
lv_label_set_text(lbl_status, "#FFDD00 Failed to init SD!#");
|
||||
goto out;
|
||||
|
|
|
@ -60,6 +60,11 @@ bool sd_get_card_removed()
|
|||
return false;
|
||||
}
|
||||
|
||||
bool sd_get_card_initialized()
|
||||
{
|
||||
return sd_init_done;
|
||||
}
|
||||
|
||||
u32 sd_get_mode()
|
||||
{
|
||||
return sd_mode;
|
||||
|
|
Loading…
Reference in a new issue