Hold down keys 0-9 to bypass F-key

This commit is contained in:
OneOfEleven 2023-09-14 19:53:01 +01:00
parent 5c664164b2
commit 67ef7c5ef1
4 changed files with 8 additions and 7 deletions

View File

@ -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;
}
@ -237,11 +237,12 @@ 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

Binary file not shown.

Binary file not shown.

Binary file not shown.