Disable PTT if KEY_LOCK
This commit is contained in:
@@ -1755,7 +1755,11 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
|||||||
|
|
||||||
bool lowBatPopup = gLowBattery && !gLowBatteryConfirmed && gScreenToDisplay == DISPLAY_MAIN;
|
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)
|
if ((gEeprom.KEY_LOCK || lowBatPopup) && gCurrentFunction != FUNCTION_TRANSMIT && Key != KEY_PTT)
|
||||||
|
#endif
|
||||||
{ // keyboard is locked or low battery popup
|
{ // keyboard is locked or low battery popup
|
||||||
|
|
||||||
// close low battery popup
|
// close low battery popup
|
||||||
|
Reference in New Issue
Block a user