# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1492129341 25200 # Thu Apr 13 17:22:21 2017 -0700 # Node ID 791293b5a0101a7be61cafdc1b41cdd0a431cfd8 # Parent 0019ce490c8e92b4099393a4c83c3f4e3c11d10a [TK-270] Allow programming Kenwood commercial radios up to 10 MHz out of band. #4709
diff -r 0019ce490c8e -r 791293b5a010 chirp/drivers/tk270.py --- a/chirp/drivers/tk270.py Thu Apr 13 17:13:38 2017 -0700 +++ b/chirp/drivers/tk270.py Thu Apr 13 17:22:21 2017 -0700 @@ -413,17 +413,12 @@ # indentify the radio variant and set the enviroment to it's values try: self._upper, low, high, self._kind = self.VARIANTS[rid] - self._range = [low * 1000000, high * 1000000] + self._range = [(low - 10) * 1000000, (high + 10) * 1000000]
# put the VARIANT in the class, clean the model / CHs / Type # in the same layout as the KPG program - self._VARIANT = self.MODEL + " [" + str(self._upper) + "CH]: " - self._VARIANT += self._kind + ", " - self._VARIANT += str(self._range[0]/1000000) + "-" - self._VARIANT += str(self._range[1]/1000000) + " Mhz" - - # DEBUG - #print self._VARIANT + self._VARIANT = "%s [%dCH]: %s, %d-%d Mhz" % ( + self.MODEL, self._upper, self._kind, low, high)
except KeyError: LOG.debug("Wrong Kenwood radio, ID or unknown variant")