Skip to content

Commit

Permalink
Move variable declaration outside of guarded region
Browse files Browse the repository at this point in the history
  • Loading branch information
JuantAldea committed Dec 24, 2023
1 parent d75209b commit e929a79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e929a79

Please sign in to comment.