Skip to content

Commit

Permalink
Merge pull request #157 from nanhantianyi/fixdtmf
Browse files Browse the repository at this point in the history
Fix a dtmf bug
  • Loading branch information
losehu authored Sep 10, 2024
2 parents 0f66c4f + b02ab91 commit 6c893e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/dtmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ void DTMF_clear_input_box(void) {
memset(gDTMF_InputBox, 0, sizeof(gDTMF_InputBox));
gDTMF_InputBox_Index = 0;
gDTMF_InputMode = false;
gPttWasReleased = false;
}

void DTMF_Append(const char code) {
Expand Down
3 changes: 1 addition & 2 deletions app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,7 @@ static void MAIN_Key_EXIT(bool bKeyPressed, bool bKeyHeld) {

if (gInputBoxIndex > 0 || gDTMF_InputBox_Index > 0 ||
gDTMF_InputMode) { // cancel key input mode (channel/frequency entry)
gDTMF_InputMode = false;
gDTMF_InputBox_Index = 0;
DTMF_clear_input_box();
memset(gDTMF_String, 0, sizeof(gDTMF_String));
gInputBoxIndex = 0;
gRequestDisplayScreen = DISPLAY_MAIN;
Expand Down

0 comments on commit 6c893e3

Please sign in to comment.