[chirp_devel] [PATCH] [TK-270] Allow programming Kenwood commercial UHF radios in the 70cm band. #4709
Pavel Milanes Costa
Mon Apr 10 07:10:58 PDT 2017
A patch with the correct fix is un the way...
El 07/04/17 a las 23:07, Tom Hayward via chirp_devel escribió:
> # 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
> _______________________________________________
> chirp_devel mailing list
> chirp_devel at intrepid.danplanet.com
> http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
> Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
More information about the chirp_devel
mailing list