Skip to content

Commit

Permalink
refactor: set reset screen function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Otrebor671 committed Aug 19, 2024
1 parent 40bee81 commit 8e2c1e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/main/modules/menus_module/menus_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ void menus_module_set_app_state(bool in_app, input_callback_t input_cb) {
void menus_module_exit_app() {
app_state2.in_app = false;
app_state2.input_callback = NULL;
screen_module_set_reset_screen(menus_ctx->parent_menu_idx);
menus_module_set_reset_screen(menus_ctx->parent_menu_idx);
esp_restart();
}

void menus_module_exit_app_information() {
app_state2.in_app = false;
app_state2.input_callback = NULL;
keyboard_module_set_input_callback(menus_input_cb);
screen_module_set_reset_screen(menus_ctx->parent_menu_idx);
menus_module_set_reset_screen(menus_ctx->parent_menu_idx);
screen_saver_get_idle_state();
navigation_exit();
}
Expand Down

0 comments on commit 8e2c1e9

Please sign in to comment.