From 5046a3b85726462f46198ea0e31a9de141a74720 Mon Sep 17 00:00:00 2001 From: forntoh Date: Thu, 26 Jan 2023 15:13:22 +0100 Subject: [PATCH] made update function public --- src/LcdMenu.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/LcdMenu.h b/src/LcdMenu.h index 510646d2..d9e81e93 100644 --- a/src/LcdMenu.h +++ b/src/LcdMenu.h @@ -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 @@ -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