From 31c8292f234055d2199e163f2e31a0fc6bd1bf61 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Tue, 11 Oct 2022 07:51:45 +0300 Subject: [PATCH] config: set default auto hos power off to enabled for T210B01 For new users, set Auto HOS Power Off feature to enabled if T210B01 based SoC. --- bootloader/config.c | 5 +++-- nyx/nyx_gui/config.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bootloader/config.c b/bootloader/config.c index 06241a8..60d32b6 100644 --- a/bootloader/config.c +++ b/bootloader/config.c @@ -27,12 +27,14 @@ extern hekate_config h_cfg; void set_default_configuration() { + h_cfg.t210b01 = hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01; + h_cfg.autoboot = 0; h_cfg.autoboot_list = 0; h_cfg.bootwait = 3; h_cfg.noticker = 0; //! TODO: Add GUI option. h_cfg.backlight = 100; - h_cfg.autohosoff = 0; + h_cfg.autohosoff = h_cfg.t210b01 ? 1 : 0; h_cfg.autonogc = 1; h_cfg.updater2p = 0; h_cfg.bootprotect = 0; @@ -41,7 +43,6 @@ void set_default_configuration() h_cfg.eks = NULL; h_cfg.rcm_patched = fuse_check_patched_rcm(); h_cfg.emummc_force_disable = false; - h_cfg.t210b01 = hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01; } int create_config_entry() diff --git a/nyx/nyx_gui/config.c b/nyx/nyx_gui/config.c index 9f0229a..866b51e 100644 --- a/nyx/nyx_gui/config.c +++ b/nyx/nyx_gui/config.c @@ -27,12 +27,14 @@ extern nyx_config n_cfg; void set_default_configuration() { + h_cfg.t210b01 = hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01; + h_cfg.autoboot = 0; h_cfg.autoboot_list = 0; h_cfg.bootwait = 3; h_cfg.noticker = 0; h_cfg.backlight = 100; - h_cfg.autohosoff = 0; + h_cfg.autohosoff = h_cfg.t210b01 ? 1 : 0; h_cfg.autonogc = 1; h_cfg.updater2p = 0; h_cfg.bootprotect = 0; @@ -41,7 +43,6 @@ void set_default_configuration() h_cfg.eks = NULL; h_cfg.rcm_patched = fuse_check_patched_rcm(); h_cfg.emummc_force_disable = false; - h_cfg.t210b01 = hw_get_chip_id() == GP_HIDREV_MAJOR_T210B01; sd_power_cycle_time_start = 0; }