From 0936df531864c9043fc1b46323a3b3d2c47041a9 Mon Sep 17 00:00:00 2001 From: joc2 <56229329+joc2@users.noreply.github.com> Date: Sun, 14 Jan 2024 09:44:43 -0500 Subject: [PATCH] make match the key action list to the one of the Radio menu display the list key action as the radio show it --- uvk5_egzumer.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/uvk5_egzumer.py b/uvk5_egzumer.py index 3d8bf99..c5c789a 100644 --- a/uvk5_egzumer.py +++ b/uvk5_egzumer.py @@ -480,19 +480,19 @@ DTMF_CODE_CHARS = "ABCD*# " DTMF_DECODE_RESPONSE_LIST = ["DO NOTHING", "RING", "REPLY", "BOTH"] -KEYACTIONS_LIST = ["None", - "Flashlight", - "Power", - "Monitor", - "Scan", +KEYACTIONS_LIST = ["NONE", + "FLASHLIGHT", + "POWER", + "MONITOR", + "SCAN", "VOX", - "Alarm", - "FM radio", - "1750Hz tone", - "Lock keypad", - "Switch main VFO", - "Switch frequency/memory mode", - "Switch demodulation" + "ALARM", + "FM RADIO", + "1750Hz TONE", + "LOCK KEYPAD", + "Switch main VFO (SWITCH VFO)", + "Switch frequency/memory mode (VFO/MR)", + "Switch demodulation (SWITCH DEMODUL)" ] MIC_GAIN_LIST = ["+1.1dB","+4.0dB","+8.0dB","+12.0dB","+15.1dB"] @@ -1572,11 +1572,11 @@ def GetActualKeyAction(actionNum): hasFlashlight = self._memobj.BUILD_OPTIONS.ENABLE_FLASHLIGHT lst = KEYACTIONS_LIST.copy() if not hasAlarm: - lst.remove("Alarm") + lst.remove("ALARM") if not has1750: - lst.remove("1750Hz tone") + lst.remove("1750Hz TONE") if not hasFlashlight: - lst.remove("Flashlight") + lst.remove("FLASHLIGHT") actionNum = int(actionNum) if actionNum >= len(KEYACTIONS_LIST) or KEYACTIONS_LIST[actionNum] not in lst: