[chirp_devel] [PATCH] [Retevis RT23] fix valid_tuning_steps list. #6555

Jim Unroe
Sun Mar 3 15:37:51 PST 2019


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1551656258 18000
# Node ID ebfd038c9fbe7643aad2a4d9fe8213567988b5a9
# Parent  99b3fe1283bd030029300a8c235b05b9fe1869ea
[Retevis RT23] fix valid_tuning_steps list. #6555

diff -r 99b3fe1283bd -r ebfd038c9fbe chirp/drivers/retevis_rt23.py
--- a/chirp/drivers/retevis_rt23.py	Sun Mar 03 18:07:41 2019 -0500
+++ b/chirp/drivers/retevis_rt23.py	Sun Mar 03 18:37:38 2019 -0500
@@ -172,8 +172,8 @@
 LIST_SIGNALING = ["No", "DTMF"]
 LIST_TOT = ["OFF"] + ["%s seconds" % x for x in range(30, 300, 30)]
 LIST_TXSEL = ["Edit", "Busy"]
-LIST_STEP = ["2.50K", "5.00K", "6.25K", "10.00K", "12,50K", "20.00K", "25.00K",
-             "50.00K"]
+_STEP_LIST = [2.5, 5., 6.25, 10., 12.5, 20., 25., 50.]
+LIST_STEP = ["{0:.2f}K".format(x) for x in _STEP_LIST]
 LIST_VFOMR = ["VFO", "MR(Frequency)", "MR(Channel #/Name)"]
 LIST_VFOMRFM = ["VFO", "Channel"]
 LIST_VOICE = ["Off", "Chinese", "English"]
@@ -387,6 +387,7 @@
         rf.valid_duplexes = ["", "-", "+", "split", "off"]
         rf.valid_modes = ["FM", "NFM"]  # 25 KHz, 12.5 KHz.
         rf.memory_bounds = (1, 128)
+        rf.valid_tuning_steps = _STEP_LIST
         rf.valid_bands = [
             (136000000, 174000000),
             (400000000, 480000000)]



More information about the chirp_devel mailing list