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