[chirp_devel] [PATCH 1 of 2] drivers/ft60: remove extra "(None)" in duplex drop down (#2893)

Cody P Schafer
Fri Oct 2 17:46:23 PDT 2015


# HG changeset patch
# User Cody P Schafer <dev at codyps.com>
# Date 1443833108 14400
#      Fri Oct 02 20:45:08 2015 -0400
# Node ID f599c685d5cc42229028905e63f606358e05462b
# Parent  a2aa4b8a4d92f619e6bd4512d3edbec8fef6174f
drivers/ft60: remove extra "(None)" in duplex drop down (#2893)

ft60's driver uses the DUPLEX variable's indexes as the stored values in radio
memory, and there are 2 empty string ("") options. Make chirpw's interface a
bit nicer looking by hiding one of them (arbitrarily chose to hide the first
as that is convenient code-wise).

diff --git a/chirp/drivers/ft60.py b/chirp/drivers/ft60.py
--- a/chirp/drivers/ft60.py
+++ b/chirp/drivers/ft60.py
@@ -364,7 +364,7 @@
     def get_features(self):
         rf = chirp_common.RadioFeatures()
         rf.memory_bounds = (1, 1000)
-        rf.valid_duplexes = DUPLEX
+        rf.valid_duplexes = DUPLEX[1:]
         rf.valid_tmodes = TMODES
         rf.valid_power_levels = POWER_LEVELS
         rf.valid_tuning_steps = STEPS



More information about the chirp_devel mailing list