config: utilize devmode variable
This holds the NX hw state.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
void set_default_configuration()
|
||||
{
|
||||
h_cfg.t210b01 = hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01;
|
||||
h_cfg.devmode = fuse_read_hw_state();
|
||||
|
||||
h_cfg.autoboot = 0;
|
||||
h_cfg.autoboot_list = 0;
|
||||
|
||||
@@ -35,6 +35,7 @@ typedef struct _hekate_config
|
||||
u32 bootprotect;
|
||||
// Global temporary config.
|
||||
bool t210b01;
|
||||
bool devmode;
|
||||
bool emummc_force_disable;
|
||||
bool rcm_patched;
|
||||
bool autorcm_enabled;
|
||||
|
||||
@@ -781,7 +781,7 @@ lv_res_t mbox_action(lv_obj_t *btns, const char *txt)
|
||||
|
||||
bool nyx_emmc_check_battery_enough()
|
||||
{
|
||||
if (fuse_read_hw_state() == FUSE_NX_HW_STATE_DEV)
|
||||
if (h_cfg.devmode)
|
||||
return true;
|
||||
|
||||
int batt_volt = 0;
|
||||
|
||||
Reference in New Issue
Block a user