[chirp_devel] [PATCH] [BTECH] Update SPMUTE Setting

Jim Unroe
Mon Apr 11 17:00:41 PDT 2016


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1460418363 14400
# Node ID 3c0e8a9f2cc11c85fafc8007ff302d36c095f082
# Parent  7bfda498b84f2b1de3aeca3062025d1171b6318d
[BTECH] Update SPMUTE Setting

SPMUTE was accidentally programmed as RadioSettingValueBoolean when
in reality is should have been programmed as RadioSettingValueList

related to #3015

diff -r 7bfda498b84f -r 3c0e8a9f2cc1 chirp/drivers/btech.py
--- a/chirp/drivers/btech.py	Sat Apr 02 21:10:05 2016 -0400
+++ b/chirp/drivers/btech.py	Mon Apr 11 19:46:03 2016 -0400
@@ -106,6 +106,7 @@
 PTTID_LIST = ["OFF", "BOT", "EOT", "BOTH"]
 PTTIDCODE_LIST = ["%s" % x for x in range(1, 16)]
 OPTSIG_LIST = ["OFF", "DTMF", "2TONE", "5TONE"]
+SPMUTE_LIST = ["Tone/DTCS", "Tone/DTCS and Optsig", "Tone/DTCS or Optsig"]
 
 # This is a general serial timeout for all serial read functions.
 # Practice has show that about 0.7 sec will be enough to cover all radios.
@@ -820,10 +821,6 @@
         # Extra
         mem.extra = RadioSettingGroup("extra", "Extra")
 
-        spmute = RadioSetting("spmute", "Speaker mute",
-                              RadioSettingValueBoolean(bool(_mem.spmute)))
-        mem.extra.append(spmute)
-
         scramble = RadioSetting("scramble", "Scramble",
                                 RadioSettingValueBoolean(bool(_mem.scramble)))
         mem.extra.append(scramble)
@@ -851,6 +848,12 @@
                                   OPTSIG_LIST[_mem.optsig]))
         mem.extra.append(optsig)
 
+        spmute = RadioSetting("spmute", "Speaker mute",
+                              RadioSettingValueList(
+                                  SPMUTE_LIST,
+                                  SPMUTE_LIST[_mem.spmute]))
+        mem.extra.append(spmute)
+
         return mem
 
     def set_memory(self, mem):



More information about the chirp_devel mailing list