[chirp_devel] [PATCH] [TK-270] Allow programming Kenwood commercial UHF radios in the 70cm band. #4709

Tom Hayward
Fri Apr 7 20:07:51 PDT 2017


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1491620809 25200
#      Fri Apr 07 20:06:49 2017 -0700
# Node ID 87617be5ce849914797040874cb95922c64a712a
# Parent  aa35de3cc43ead9e35ecd637525cb4a5dfa9faad
[TK-270] Allow programming Kenwood commercial UHF radios in the 70cm band. #4709

diff -r aa35de3cc43e -r 87617be5ce84 chirp/drivers/tk270.py
--- a/chirp/drivers/tk270.py	Thu Mar 30 15:43:25 2017 -0700
+++ b/chirp/drivers/tk270.py	Fri Apr 07 20:06:49 2017 -0700
@@ -413,14 +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 = [min(440, low) * 1000000, high * 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"
+            self._VARIANT += "%s, %d-%d Mhz" % (self._kind, low, high)
 
             # DEBUG
             #print self._VARIANT



More information about the chirp_devel mailing list