[chirp_devel] [PATCH] [th9800] add tuning steps per channel #1353
Jens Jensen
Mon Jan 19 20:13:34 PST 2015
# HG changeset patch
# User Jens Jensen <af5mi at yahoo.com>
# Date 1421727036 21600
# Mon Jan 19 22:10:36 2015 -0600
# Node ID 5b4e229d730041fad722f6e0a8bd22b558dc45dc
# Parent 56fed859d58a2139f6f13802d9df980561aee2cf
[th9800] add tuning steps per channel #1353
diff -r 56fed859d58a -r 5b4e229d7300 chirp/th9800.py
--- a/chirp/th9800.py Mon Jan 19 21:59:25 2015 -0600
+++ b/chirp/th9800.py Mon Jan 19 22:10:36 2015 -0600
@@ -177,7 +177,8 @@
rf = chirp_common.RadioFeatures()
rf.memory_bounds = (1, 800)
rf.has_bank = False
- rf.has_tuning_step = False
+ rf.has_tuning_step = True
+ rf.valid_tuning_steps = STEPS
rf.can_odd_split = True
rf.valid_duplexes = ["", "-", "+", "split", "off"]
rf.valid_tmodes = TMODES
@@ -277,6 +278,7 @@
mem.mode = _mem.am and "AM" or MODES[int(_mem.fmdev)]
mem.power = POWER_LEVELS[_mem.power]
+ mem.tuning_step = STEPS[_mem.step]
mem.extra = RadioSettingGroup("extra", "Extra")
FreqName = RadioSetting("FreqName", "Frequency or Name",
@@ -366,7 +368,8 @@
_mem.fmdev = MODES.index(mem.mode)
_mem.power = POWER_LEVELS.index(mem.power)
-
+ _mem.step = STEPS.index(mem.tuning_step)
+
for setting in mem.extra:
setattr(_mem, setting.get_name(), setting.value)
More information about the chirp_devel
mailing list