mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-22 09:44:12 +00:00
Hold down keys 0-9 to bypass F-key
This commit is contained in:
parent
5c664164b2
commit
67ef7c5ef1
15
app/main.c
15
app/main.c
@ -220,10 +220,10 @@ static void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||
if (bKeyPressed)
|
||||
{
|
||||
if (gScreenToDisplay == DISPLAY_MAIN)
|
||||
{ // we're going to go straight to the function key function
|
||||
// without the F-key being first pressed
|
||||
{ // we're going to go straight to the 0-9 key function
|
||||
// without the F-key first being pressed
|
||||
if (gInputBoxIndex > 0)
|
||||
{ // delete last char inputted
|
||||
{ // delete any inputted chars
|
||||
gInputBoxIndex = 0;
|
||||
gRequestDisplayScreen = DISPLAY_MAIN;
|
||||
}
|
||||
@ -236,12 +236,13 @@ static void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!bKeyPressed)
|
||||
return;
|
||||
|
||||
|
||||
gBeepToPlay = BEEP_1KHZ_60MS_OPTIONAL;
|
||||
|
||||
// if (!bKeyPressed)
|
||||
if (bKeyPressed) // wait till the key is released
|
||||
return;
|
||||
|
||||
if (!gWasFKeyPressed)
|
||||
{
|
||||
uint8_t Vfo = gEeprom.TX_CHANNEL;
|
||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user