[chirp_devel] [PATCH] [TK-270] Allow programming Kenwood commercial radios up to 10 MHz out of band. #4709
Pavel Milanes Costa
Mon Apr 24 07:09:53 PDT 2017
Hi and Sorry,
I was offline at home in bed by medical prescription due to back pain,
I'm back now.
This patch joint with the reset of the ham modified limits for all
radios can do the trick, Dan, you have green light from me to apply to
this patch!
This is a clever/simple solution that can be extended to the other
commercial kenwood radios.
I will work in patching the rest of the commercial kenwoods trough the week.
73 Pavel CO7WT.
El 13/04/17 a las 20:22, Tom Hayward via chirp_devel escribió:
> # HG changeset patch
> # User Tom Hayward <tom at 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")
> _______________________________________________
> 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