Skip to content

Commit

Permalink
Fix exiting via back button causes state confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Oct 11, 2023
1 parent a825527 commit e82043e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/page_fans.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ typedef enum {
static lv_coord_t col_dsc[] = {160, 160, 160, 160, 140, 160, LV_GRID_TEMPLATE_LAST};
static lv_coord_t row_dsc[] = {60, 60, 60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST};

fans_mode_t fans_mode = FANS_MODE_TOP;
static fans_mode_t fans_mode = FANS_MODE_NO_FAN;

static btn_group_t btn_group_fans;

Expand Down
4 changes: 3 additions & 1 deletion src/ui/page_headtracker.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ static void page_headtracker_enter() {
}

static void page_headtracker_exit() {
page_headtracker_exit_slider();
if (angle_slider_selected) {
page_headtracker_exit_slider();
}
lv_timer_del(timer);
}

Expand Down

0 comments on commit e82043e

Please sign in to comment.