From 5f7da35e0677c8f176eb89adf4424de2fa3422f8 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Fri, 9 Feb 2024 02:07:08 +0100 Subject: [PATCH] Disable PTT if KEY_LOCK --- app/app.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/app.c b/app/app.c index 29be46f..46e1ee7 100644 --- a/app/app.c +++ b/app/app.c @@ -1755,7 +1755,11 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) bool lowBatPopup = gLowBattery && !gLowBatteryConfirmed && gScreenToDisplay == DISPLAY_MAIN; +#ifdef ENABLE_FEAT_F4HWN // Disable PTT if KEY_LOCK + if ((gEeprom.KEY_LOCK || lowBatPopup) && gCurrentFunction != FUNCTION_TRANSMIT) +#else if ((gEeprom.KEY_LOCK || lowBatPopup) && gCurrentFunction != FUNCTION_TRANSMIT && Key != KEY_PTT) +#endif { // keyboard is locked or low battery popup // close low battery popup