[chirp_devel] [PATCH] [THD7] Fix settings support - some more

Marco Filippi IZ3GME
Mon Mar 9 13:04:58 PDT 2015


# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1425931409 -3600
#      lun mar 09 21:03:29 2015 +0100
# Node ID 4fe527771a5b2ca49bbf1ecb2915e4f58990084a
# Parent  0ad336b0d0073f439066eb8e4469457acaa0d19b
[THD7] Fix settings support - some more

In the ui all settings must be inside a group, I moved all settings that I put
in top with last patch to a new group named Main

Fix #2401

diff --git a/chirp/drivers/kenwood_live.py b/chirp/drivers/kenwood_live.py
--- a/chirp/drivers/kenwood_live.py
+++ b/chirp/drivers/kenwood_live.py
@@ -388,6 +388,7 @@
         return self._kenwood_set(cmd, ("%%0%ii" % digits) % value)
 
     def get_settings(self):
+        main = RadioSettingGroup("main", "Main")
         aux = RadioSettingGroup("aux", "Aux")
         tnc = RadioSettingGroup("tnc", "TNC")
         save = RadioSettingGroup("save", "Save")
@@ -398,7 +399,7 @@
         sky = RadioSettingGroup("sky", "SkyCommand")
         aprs = RadioSettingGroup("aprs", "APRS")
 
-        top = RadioSettings(radio, aprs, sky)
+        top = RadioSettings(main, radio, aprs, sky)
 
         bools = [("AMR", aprs, "APRS Message Auto-Reply"),
                  ("AIP", aux, "Advanced Intercept Point"),
@@ -406,9 +407,9 @@
                  ("BCN", aprs, "Beacon"),
                  ("CH", radio, "Channel Mode Display"),
                  # ("DIG", aprs, "APRS Digipeater"),
-                 ("DL", top, "Dual"),
-                 ("LK", top, "Lock"),
-                 ("LMP", top, "Lamp"),
+                 ("DL", main, "Dual"),
+                 ("LK", main, "Lock"),
+                 ("LMP", main, "Lamp"),
                  ("TSP", dtmf, "DTMF Fast Transmission"),
                  ("TXH", dtmf, "TX Hold"),
                  ]
@@ -419,7 +420,7 @@
                               RadioSettingValueBoolean(value))
             group.append(rs)
 
-        lists = [("BAL", top, "Balance"),
+        lists = [("BAL", main, "Balance"),
                  ("BEP", aux, "Beep"),
                  ("BEPT", aprs, "APRS Beep"),
                  ("DS", tnc, "Data Sense"),
@@ -427,7 +428,7 @@
                  ("DTBA", aprs, "APRS Data Band"),
                  ("DTX", aprs, "APRS Data TX"),
                  # ("ICO", aprs, "APRS Icon"),
-                 ("MNF", top, "Memory Display Mode"),
+                 ("MNF", main, "Memory Display Mode"),
                  ("PKSA", aprs, "APRS Packet Speed"),
                  ("POSC", aprs, "APRS Position Comment"),
                  ("PT", dtmf, "DTMF Speed"),



More information about the chirp_devel mailing list