mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 14:48:03 +03:00
Updated DTMF to full char range
This commit is contained in:
20
app/app.c
20
app/app.c
@ -1814,10 +1814,28 @@ void APP_TimeSlice10ms(void)
|
||||
|
||||
void cancelUserInputModes(void)
|
||||
{
|
||||
if (g_ask_to_save)
|
||||
{
|
||||
g_ask_to_save = false;
|
||||
g_update_display = true;
|
||||
}
|
||||
if (g_ask_to_delete)
|
||||
{
|
||||
g_ask_to_delete = false;
|
||||
g_update_display = true;
|
||||
}
|
||||
|
||||
if (g_dtmf_input_mode || g_dtmf_input_box_index > 0)
|
||||
{
|
||||
DTMF_clear_input_box();
|
||||
g_request_display_screen = DISPLAY_MAIN;
|
||||
#ifdef ENABLE_FMRADIO
|
||||
if (g_fm_radio_mode)
|
||||
g_request_display_screen = DISPLAY_FM;
|
||||
else
|
||||
g_request_display_screen = DISPLAY_MAIN;
|
||||
#else
|
||||
g_request_display_screen = DISPLAY_MAIN;
|
||||
#endif
|
||||
g_update_display = true;
|
||||
}
|
||||
|
||||
|
8
app/fm.c
8
app/fm.c
@ -380,6 +380,8 @@ static void FM_Key_DIGITS(key_code_t Key, bool key_pressed, bool key_held)
|
||||
|
||||
static void FM_Key_STAR(bool key_pressed, bool key_held)
|
||||
{
|
||||
g_key_input_count_down = key_input_timeout_500ms;
|
||||
|
||||
if (key_held && !key_pressed)
|
||||
return;
|
||||
|
||||
@ -392,6 +394,8 @@ static void FM_Key_STAR(bool key_pressed, bool key_held)
|
||||
|
||||
static void FM_Key_EXIT(bool key_pressed, bool key_held)
|
||||
{
|
||||
g_key_input_count_down = key_input_timeout_500ms;
|
||||
|
||||
if (key_held || key_pressed)
|
||||
return;
|
||||
|
||||
@ -451,6 +455,8 @@ static void FM_Key_MENU(bool key_pressed, bool key_held)
|
||||
unsigned int i;
|
||||
int channel = -1;
|
||||
|
||||
g_key_input_count_down = key_input_timeout_500ms;
|
||||
|
||||
if (key_held || key_pressed)
|
||||
return;
|
||||
|
||||
@ -518,6 +524,8 @@ static void FM_Key_MENU(bool key_pressed, bool key_held)
|
||||
|
||||
static void FM_Key_UP_DOWN(bool key_pressed, bool key_held, int8_t Step)
|
||||
{
|
||||
g_key_input_count_down = key_input_timeout_500ms;
|
||||
|
||||
if (key_held || !key_pressed)
|
||||
{
|
||||
if (g_input_box_index > 0)
|
||||
|
Reference in New Issue
Block a user