nyx: Reduce idle power draw by 280mW

This commit is contained in:
CTCaer 2020-06-14 13:14:32 +03:00
parent a2655912d4
commit 5790c585f5
2 changed files with 6 additions and 1 deletions

View file

@ -2258,7 +2258,11 @@ void nyx_load_and_run()
while (true)
{
minerva_change_freq(FREQ_1600); // Takes 295us.
lv_task_handler();
bpmp_usleep(HALT_COP_MAX_CNT);
minerva_change_freq(FREQ_800); // Takes 80us. Saves 280mW.
//bpmp_usleep(HALT_COP_MAX_CNT); // Taskes 200us. Saves 75mW.
}
}

View file

@ -21,6 +21,7 @@
void nyx_options_clear_ini_changes_made();
bool nyx_options_get_ini_changes_made();
void first_time_clock_edit(void *param);
lv_res_t create_win_nyx_options(lv_obj_t *parrent_btn);
void create_tab_options(lv_theme_t *th, lv_obj_t *parent);