0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 06:39:49 +03:00

Fix 1750Hz key bug

This commit is contained in:
OneOfEleven
2023-10-04 00:45:03 +01:00
parent eaccdab1d4
commit 9d990f7e67
4 changed files with 5 additions and 5 deletions

View File

@ -1987,6 +1987,7 @@ void APP_TimeSlice500ms(void)
static void ALARM_Off(void)
{
gAlarmState = ALARM_STATE_OFF;
GPIO_ClearBit(&GPIOC->DATA, GPIOC_PIN_AUDIO_PATH);
gEnableSpeaker = false;
@ -2002,7 +2003,7 @@ void APP_TimeSlice500ms(void)
RADIO_SetupRegisters(true);
// if (gScreenToDisplay != DISPLAY_MENU) // 1of11 .. don't close the menu
if (gScreenToDisplay != DISPLAY_MENU) // 1of11 .. don't close the menu
gRequestDisplayScreen = DISPLAY_MAIN;
}
#endif
@ -2279,9 +2280,8 @@ static void APP_ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
if (Key == KEY_PTT)
gPttWasPressed = true;
else
if (!bKeyHeld)
gPttWasReleased = true;
bKeyHeld = false;
}
#endif
}