[chirp_devel] [PATCH] [BTECH] change set_options to be less model specific for 220 band radio #3015
# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1459130071 14400 # Node ID f72dc17eee0a32e1d6b6b5ad523c17eda2b6b094 # Parent 7d6ddfaba49a4e490cb25c831a87197bf55d9966 [BTECH] change set_options to be less model specific for 220 band radio #3015
This patch includes the following changes:
Bug fixes - update branching method for models with 220 band
diff -r 7d6ddfaba49a -r f72dc17eee0a chirp/drivers/btech.py --- a/chirp/drivers/btech.py Sun Mar 27 21:27:43 2016 -0400 +++ b/chirp/drivers/btech.py Sun Mar 27 21:54:31 2016 -0400 @@ -712,7 +712,7 @@ ranges"""
# setting the correct ranges for each radio type - if self.MODEL == "UV-2501+220": + if "+220" in self.MODEL: # the model 2501+220 has a segment in 220 # and a different position in the memmap ranges = self._memobj.ranges220 @@ -728,7 +728,7 @@ LOG.info("Radio ranges: UHF %d to %d" % uhf)
# 220Mhz case - if self.MODEL == "UV-2501+220": + if "+220" in self.MODEL: vhf2 = _decode_ranges(ranges.vhf2_low, ranges.vhf2_high) LOG.info("Radio ranges: VHF(220) %d to %d" % vhf2) self._220_range = vhf2
participants (1)
-
Jim Unroe