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

nyx: Allow reboot to OFW for patched units

- OFW: This bypasses fuses like always and does not cause a SYS Reset.
- Normal: Resets regulators and causes a SYS Reset.
This commit is contained in:
CTCaer 2021-01-11 22:18:36 +02:00
parent d1f0ea3de7
commit abcf7f6f57

View file

@ -955,14 +955,12 @@ static lv_res_t _reboot_action(lv_obj_t *btns, const char *txt)
switch (btnidx)
{
case 0:
if (h_cfg.rcm_patched)
power_set_state(POWER_OFF_REBOOT);
else
power_set_state(REBOOT_BYPASS_FUSES);
break;
case 1:
if (h_cfg.rcm_patched)
break;
power_set_state(POWER_OFF_REBOOT);
else
power_set_state(REBOOT_RCM);
break;
}
@ -1006,7 +1004,7 @@ static lv_res_t _create_mbox_reboot(lv_obj_t *btn)
lv_obj_set_size(dark_bg, LV_HOR_RES, LV_VER_RES);
static const char * mbox_btn_map[] = { "\221OFW", "\221RCM", "\221Cancel", "" };
static const char * mbox_btn_map_patched[] = { "\221Reboot", "\221Cancel", "" };
static const char * mbox_btn_map_patched[] = { "\221OFW", "\221Normal", "\221Cancel", "" };
lv_obj_t *mbox = lv_mbox_create(dark_bg, NULL);
lv_mbox_set_recolor_text(mbox, true);
lv_obj_set_width(mbox, LV_HOR_RES / 2);