From 1e2ac79d45c1dec214cd5bdf41ce409ad3928562 Mon Sep 17 00:00:00 2001 From: Gyorgy Szombathelyi <8644936+gyurco@users.noreply.github.com> Date: Thu, 1 Dec 2022 16:29:23 +0100 Subject: [PATCH] menu.c: use defined constant --- menu.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/menu.c b/menu.c index ba6394e..811a6e6 100644 --- a/menu.c +++ b/menu.c @@ -54,9 +54,6 @@ along with this program. If not, see . // #define ALLOW_TEST_MENU 0 //remove to disable in prod version -// other constants -#define DIRSIZE OSDNLINE // number of items in directory display window - static uint8_t menu_last, scroll_down, scroll_up; static uint8_t page_idx, last_page[4], last_menusub[4], last_menu_first[4], page_level; static menu_item_t menu_item; @@ -1718,7 +1715,7 @@ static void PrintDirectory(void) ScrollReset(); - for (i = 0; i < 8; i++) + for (i = 0; i < OSDNLINE; i++) { memset(s, ' ', 32); // clear line buffer if (i < nDirEntries)