Another DTMF rename.

This commit is contained in:
Dual Tachyon 2023-09-02 23:26:30 +01:00
parent e0c7f11412
commit 4a0e8c933e
5 changed files with 5 additions and 5 deletions

View File

@ -39,6 +39,7 @@ bool gDTMF_DecodeRing;
uint8_t gDTMF_DecodeRingCountdown;
uint8_t gDTMFChosenContact;
uint8_t gDTMF_WriteIndex;
uint8_t gDTMF_PreviousIndex;
uint8_t gDTMF_AUTO_RESET_TIME;
uint8_t gDTMF_InputIndex;
bool gDTMF_InputMode;

View File

@ -65,6 +65,7 @@ extern bool gDTMF_DecodeRing;
extern uint8_t gDTMF_DecodeRingCountdown;
extern uint8_t gDTMFChosenContact;
extern uint8_t gDTMF_WriteIndex;
extern uint8_t gDTMF_PreviousIndex;
extern uint8_t gDTMF_AUTO_RESET_TIME;
extern uint8_t gDTMF_InputIndex;
extern bool gDTMF_InputMode;

View File

@ -129,9 +129,9 @@ void GENERIC_Key_PTT(bool bKeyPressed)
}
g_200003A0 = 1;
if (gDTMF_InputMode) {
if (gDTMF_InputIndex || g_200003C0) {
if (gDTMF_InputIndex || gDTMF_PreviousIndex) {
if (gDTMF_InputIndex == 0) {
gDTMF_InputIndex = g_200003C0;
gDTMF_InputIndex = gDTMF_PreviousIndex;
}
gDTMF_InputBox[gDTMF_InputIndex] = 0;
if (gDTMF_InputIndex == 3) {
@ -140,7 +140,7 @@ void GENERIC_Key_PTT(bool bKeyPressed)
gDTMF_CallMode = DTMF_CALL_MODE_DTMF;
}
sprintf(gDTMF_String, "%s", gDTMF_InputBox);
g_200003C0 = gDTMF_InputIndex;
gDTMF_PreviousIndex = gDTMF_InputIndex;
gDTMF_ReplyState = DTMF_REPLY_ANI;
gDTMF_State = DTMF_STATE_0;
}

1
misc.c
View File

@ -105,7 +105,6 @@ uint8_t gFlashLightState;
uint8_t g_200003B4;
uint16_t g_200003B6;
uint16_t g_200003B8;
uint8_t g_200003C0;
uint16_t g_200003E2;
volatile uint16_t gFlashLightBlinkCounter;
uint8_t g_200003FD;

1
misc.h
View File

@ -139,7 +139,6 @@ extern uint8_t gFlashLightState;
extern uint8_t g_200003B4;
extern uint16_t g_200003B6;
extern uint16_t g_200003B8;
extern uint8_t g_200003C0;
extern uint16_t g_200003E2;
extern volatile uint16_t gFlashLightBlinkCounter;
extern uint8_t g_200003FD;