mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2024-12-09 09:30:36 +08:00
Another DTMF rename.
This commit is contained in:
parent
e0c7f11412
commit
4a0e8c933e
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
1
misc.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user