From e929a797655ade01cf66730a78755339e0ffd835 Mon Sep 17 00:00:00 2001 From: Juan Antonio Date: Sun, 24 Dec 2023 20:55:29 +0100 Subject: [PATCH] Move variable declaration outside of guarded region Fixes #328 --- ui/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/main.c b/ui/main.c index 6666211..168934d 100644 --- a/ui/main.c +++ b/ui/main.c @@ -356,10 +356,11 @@ void UI_DisplayMain(void) || gDTMF_CallState != DTMF_CALL_STATE_NONE || gDTMF_IsTx #endif ) { + char *pPrintStr = ""; // show DTMF stuff #ifdef ENABLE_DTMF_CALLING char Contact[16]; - char *pPrintStr = ""; + if (!gDTMF_InputMode) { if (gDTMF_CallState == DTMF_CALL_STATE_CALL_OUT) { pPrintStr = DTMF_FindContact(gDTMF_String, Contact) ? Contact : gDTMF_String;