[chirp_devel] [PATCH] [UV-50X3] Add Support for BTech UV-50X3 - Basic Settings(continued)

Jim Unroe
Tue Jul 12 19:29:01 PDT 2016


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1468376897 14400
# Node ID 1c3906ec7d9a64d8ed3521cb476c2045a8374f19
# Parent  391dcd66ed35fdcfccc3f7fc4fbd200e86ead745
[UV-50X3] Add Support for BTech UV-50X3 - Basic Settings(continued)

This patch adds the remaining UV-50X3 basic settings.

related to #3815

diff -r 391dcd66ed35 -r 1c3906ec7d9a chirp/drivers/vgc.py
--- a/chirp/drivers/vgc.py	Tue Jul 12 22:24:05 2016 -0400
+++ b/chirp/drivers/vgc.py	Tue Jul 12 22:28:17 2016 -0400
@@ -1095,6 +1095,75 @@
                                _mem.settings.tot]))
         basic.append(tot)
 
+        # Timer/Clock: G01-G04
+
+        # G01
+        datefmt = RadioSetting("settings.datefmt", "Date format",
+                               RadioSettingValueList(LIST_DATEFMT,
+                                   LIST_DATEFMT[_mem.settings.datefmt]))
+        basic.append(datefmt)
+
+        timefmt = RadioSetting("settings.timefmt", "Time format",
+                               RadioSettingValueList(LIST_TIMEFMT,
+                                   LIST_TIMEFMT[_mem.settings.timefmt]))
+        basic.append(timefmt)
+
+        timesig = RadioSetting("settings.timesig", "Time signal",
+                               RadioSettingValueBoolean(_mem.settings.timesig))
+        basic.append(timesig)
+
+        tz = RadioSetting("settings.tz", "Time zone",
+                          RadioSettingValueList(LIST_TZ, LIST_TZ[
+                              _mem.settings.tz]))
+        basic.append(tz)
+
+        # Signaling: H01-H06
+
+        bell = RadioSetting("settings.bell", "Bell ringer",
+                            RadioSettingValueList(LIST_BELL, LIST_BELL[
+                                _mem.settings.bell]))
+        basic.append(bell)
+
+        # H02 (per channel)
+
+        dtmfmodenc = RadioSetting("settings.dtmfmodenc", "DTMF mode encode",
+                                  RadioSettingValueBoolean(
+                                      _mem.settings.dtmfmodenc))
+        basic.append(dtmfmodenc)
+
+        dtmfmoddec = RadioSetting("settings.dtmfmoddec", "DTMF mode decode",
+                                  RadioSettingValueBoolean(
+                                      _mem.settings.dtmfmoddec))
+        basic.append(dtmfmoddec)
+
+        # H04 (per channel)
+
+        decbandsel = RadioSetting("settings.decbandsel", "DTMF band select",
+                                  RadioSettingValueList(LIST_AB,LIST_AB[
+                                      _mem.settings.decbandsel]))
+        basic.append(decbandsel)
+
+        sqlexp = RadioSetting("settings.sqlexp", "SQL expansion",
+                              RadioSettingValueBoolean(_mem.settings.sqlexp))
+        basic.append(sqlexp)
+
+        # Pkt: I01-I03
+
+        databnd = RadioSetting("settings.databnd", "Packet data band",
+                               RadioSettingValueList(LIST_DATABND,LIST_DATABND[
+                                   _mem.settings.databnd]))
+        basic.append(databnd)
+
+        dataspd = RadioSetting("settings.dataspd", "Packet data speed",
+                               RadioSettingValueList(LIST_DATASPD,LIST_DATASPD[
+                                   _mem.settings.dataspd]))
+        basic.append(dataspd)
+
+        datasql = RadioSetting("settings.datasql", "Packet data squelch",
+                               RadioSettingValueList(LIST_DATASQL,LIST_DATASQL[
+                                   _mem.settings.datasql]))
+        basic.append(datasql)
+
         # Other
 
         dw = RadioSetting("settings.dw", "Dual watch",



More information about the chirp_devel mailing list