Move variable declaration outside of guarded region

Fixes #328
This commit is contained in:
Juan Antonio 2023-12-24 20:55:29 +01:00
parent d75209bad0
commit e929a79765

View File

@ -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;