[chirp_devel] [PATCH] [UV-B5] Display of STEP Setting Issue
Jim Unroe
Sun Dec 8 06:13:50 PST 2013
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1386511833 18000
# Node ID 41950a14c1c9103caa4561531dffe38b71e11e39
# Parent 720f9773857660de70f767262f1c729d99c316d1
[UV-B5] Display of STEP Setting Issue
This patch forces a valid STEP value and restores CHIRP's ability to
program frequencies with a resolution of 2.5 KHz
related to #1179
diff -r 720f97738576 -r 41950a14c1c9 chirp/uvb5.py
--- a/chirp/uvb5.py Tue Dec 03 11:13:12 2013 -0800
+++ b/chirp/uvb5.py Sun Dec 08 09:10:33 2013 -0500
@@ -284,8 +284,7 @@
rf.valid_power_levels = POWER_LEVELS
rf.has_ctone = True
rf.has_bank = False
- rf.has_tuning_step = True
- rf.valid_tuning_steps = UVB5_STEPS
+ rf.has_tuning_step = False
rf.memory_bounds = (1, 99)
return rf
@@ -371,11 +370,8 @@
self._decode_tone(_mem.txtone, _mem.txpol),
self._decode_tone(_mem.rxtone, _mem.rxpol))
- if _mem.step < 0x06:
- mem.tuning_step = UVB5_STEPS[_mem.step]
- else:
+ if _mem.step > 0x05:
_mem.step = 0x00
- mem.tuning_step = UVB5_STEPS[0]
mem.duplex = DUPLEX[_mem.duplex]
mem.mode = _mem.isnarrow and "NFM" or "FM"
mem.skip = "" if _mem.scanadd else "S"
@@ -442,7 +438,6 @@
self._encode_tone(_mem, 'tx', *tx)
self._encode_tone(_mem, 'rx', *rx)
- _mem.step = UVB5_STEPS.index(mem.tuning_step)
_mem.isnarrow = mem.mode == "NFM"
_mem.scanadd = mem.skip == ""
_mem.highpower = mem.power == POWER_LEVELS[1]
More information about the chirp_devel
mailing list