diff --git a/bootloader/main.c b/bootloader/main.c index 9e0bb4a..87094d1 100644 --- a/bootloader/main.c +++ b/bootloader/main.c @@ -133,7 +133,7 @@ void check_power_off_from_hos() msleep(600); display_backlight_brightness(0, 20000); } - power_set_state(POWER_OFF); + power_set_state(POWER_OFF_RESET); } } @@ -1304,7 +1304,7 @@ static void _check_low_battery() if (!current_charge_status) { max77620_low_battery_monitor_config(true); - power_set_state(POWER_OFF); + power_set_state(POWER_OFF_RESET); } display_end(); @@ -1498,7 +1498,7 @@ ment_t ment_tools[] = { menu_t menu_tools = { ment_tools, "Tools", 0, 0 }; -power_state_t STATE_POWER_OFF = POWER_OFF; +power_state_t STATE_POWER_OFF = POWER_OFF_RESET; power_state_t STATE_REBOOT_RCM = REBOOT_RCM; power_state_t STATE_REBOOT_BYPASS_FUSES = REBOOT_BYPASS_FUSES; diff --git a/nyx/nyx_gui/frontend/gui.c b/nyx/nyx_gui/frontend/gui.c index 5192c78..e58e5f7 100644 --- a/nyx/nyx_gui/frontend/gui.c +++ b/nyx/nyx_gui/frontend/gui.c @@ -906,7 +906,7 @@ static lv_res_t _removed_sd_action(lv_obj_t *btns, const char *txt) power_set_state(REBOOT_RCM); break; case 1: - power_set_state(POWER_OFF); + power_set_state(POWER_OFF_RESET); break; case 2: sd_end(); @@ -972,7 +972,7 @@ static lv_res_t _reboot_action(lv_obj_t *btns, const char *txt) static lv_res_t _poweroff_action(lv_obj_t *btns, const char *txt) { if (!lv_btnm_get_pressed(btns)) - power_set_state(POWER_OFF); + power_set_state(POWER_OFF_RESET); return mbox_action(btns, txt); }