[chirp_devel] [PATCH] [th9800] clarify channel display mode #1353

Jens Jensen
Sat Jan 24 07:08:24 PST 2015


# HG changeset patch
# User Jens Jensen <af5mi at yahoo.com>
# Date 1422112090 21600
#      Sat Jan 24 09:08:10 2015 -0600
# Node ID 053d19db989d641e5e0e774652078b91fbbe3fd4
# Parent  b25606106a9c0cd78f3cc5f602475da64cde081d
[th9800] clarify channel display mode #1353

change "Frequency or Name" boolean to "Display" choice of Frequency or Name

diff -r b25606106a9c -r 053d19db989d chirp/th9800.py
--- a/chirp/th9800.py	Wed Jan 21 23:30:19 2015 -0800
+++ b/chirp/th9800.py	Sat Jan 24 09:08:10 2015 -0600
@@ -40,7 +40,7 @@
   u8 power:2,
      BeatShift:1,
      unknown0a:2,
-     FreqName:1,
+     display:1,     // freq=0, name=1
      scan:2;
   u8 fmdev:2,       // wide=00, mid=01, narrow=10
      scramb:1,
@@ -281,10 +281,11 @@
     mem.tuning_step = STEPS[_mem.step]
 
     mem.extra = RadioSettingGroup("extra", "Extra")
-    FreqName = RadioSetting("FreqName", "Frequency or Name",
-                       RadioSettingValueBoolean(bool(_mem.FreqName)))
-    FreqName.set_doc("Display Frequency or Name on=Name")
-    mem.extra.append(FreqName)
+
+    opts = ["Frequency", "Name"]
+    display = RadioSetting("display", "Display",
+                       RadioSettingValueList(opts, opts[_mem.display]))
+    mem.extra.append(display)
     
     bclo = RadioSetting("bclo", "Busy Lockout",
                            RadioSettingValueList(BUSY_LOCK,



More information about the chirp_devel mailing list