Skip to content

Commit

Permalink
made update function public
Browse files Browse the repository at this point in the history
  • Loading branch information
forntoh committed Jan 26, 2023
1 parent 0444bde commit 5046a3b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/LcdMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,6 @@ class LcdMenu {
return currentMenuTable[cursorPosition + 1].getType() ==
MENU_ITEM_END_OF_MENU;
}
/*
* Draw the menu items and cursor
*/
void update() {
if (!enableUpdate) return;
drawMenu();
drawCursor();
}
/**
* Reset the display
* @param isHistoryAvailable indicates if there is a previous position
Expand Down Expand Up @@ -368,6 +360,14 @@ class LcdMenu {
currentMenuTable[position + 1].setSubMenu(items);
update();
}
/*
* Draw the menu items and cursor
*/
void update() {
if (!enableUpdate) return;
drawMenu();
drawCursor();
}
/**
* Execute an "up press" on menu
* When edit mode is enabled, this action is skipped
Expand Down

0 comments on commit 5046a3b

Please sign in to comment.