From dc1808b1fe379e776522ddaea9194a7d4dd863eb Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Mon, 29 Jan 2024 16:50:58 +0100 Subject: [PATCH] FIX #444: build error when ENABLE_DTMF_CALLING disabled --- app/menu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/menu.c b/app/menu.c index 6b0bac690..8dacadafe 100644 --- a/app/menu.c +++ b/app/menu.c @@ -1404,7 +1404,12 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld) if (UI_MENU_GetCurrentMenuId() != MENU_SCR) gAnotherVoiceID = MenuList[gMenuCursor].voice_id; #endif - if (UI_MENU_GetCurrentMenuId() == MENU_ANI_ID || UI_MENU_GetCurrentMenuId() == MENU_UPCODE|| UI_MENU_GetCurrentMenuId() == MENU_DWCODE) + if (UI_MENU_GetCurrentMenuId() == MENU_UPCODE + || UI_MENU_GetCurrentMenuId() == MENU_DWCODE +#ifdef ENABLE_DTMF_CALLING + || UI_MENU_GetCurrentMenuId() == MENU_ANI_ID +#endif + ) return; #if 1 if (UI_MENU_GetCurrentMenuId() == MENU_DEL_CH || UI_MENU_GetCurrentMenuId() == MENU_MEM_NAME)