[chirp_devel] [PATCH] [uv5r] add support for ptt id

Jim Unroe
Sat Feb 9 13:47:45 PST 2013


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1360446359 18000
# Node ID 24aa6d544216e0312a0d786e6f191826c7527c09
# Parent  2b2d547074f2b177447b39cbf4dd67f02a775a92
[uv5r] add support for ptt id
update structure to support a list instead of Bolean settings
add settings to mem.extra
#537

diff -r 2b2d547074f2 -r 24aa6d544216 chirp/uv5r.py
--- a/chirp/uv5r.py	Fri Feb 08 16:20:22 2013 -0800
+++ b/chirp/uv5r.py	Sat Feb 09 16:45:59 2013 -0500
@@ -40,8 +40,7 @@
      unknown4:2,
      bcl:1,
      scan:1,
-     pttideot:1,
-     pttidbot:1;
+     pttid:2;
 } memory[128];
 
 #seekto 0x0CB2;
@@ -567,6 +566,18 @@
                           RadioSettingValueBoolean(_mem.bcl))
         mem.extra.append(rs)
 
+        options = ["Off", "BOT", "EOT", "Both"]
+        rs = RadioSetting("pttid", "PTT ID",
+                          RadioSettingValueList(options,
+                                                options[_mem.pttid]))
+        mem.extra.append(rs)
+
+        options = ["%s" % x for x in range(1, 16)]
+        rs = RadioSetting("scode", "PTT ID Code",
+                          RadioSettingValueList(options,
+                                                options[_mem.scode]))
+        mem.extra.append(rs)
+
         return mem
 
     def set_memory(self, mem):



More information about the chirp_devel mailing list