[chirp_devel] [PATCH] [Luiton] Add Support for the Luiton LT-898UV Mobile Radio

Jim Unroe
Mon Aug 1 07:00:04 PDT 2016


On Sun, Jul 31, 2016 at 10:01 PM, Jim Unroe <rock.unroe at gmail.com> wrote:
> # HG changeset patch
> # User Jim Unroe <rock.unroe at gmail.com>
> # Date 1470016752 14400
> # Node ID 11cecf647509aca1e3f56ce22498e159dd602a4c
> # Parent  40bd8f0f9d8beefbd061ca72518d641e84a077e8
> [Luiton] Add Support for the Luiton LT-898UV Mobile Radio
>
> The LT-898UV mobile radio can be programmed using the Leixen VV-898
> vendor/model selection. This pattach adds a LUITON LT-898UV vendor/model
> selection using the newly added (chirp_common.Alias) support.
>
> fixes #3705
>
> diff -r 40bd8f0f9d8b -r 11cecf647509 chirp/drivers/leixen.py
> --- a/chirp/drivers/leixen.py   Fri Jul 15 10:24:08 2016 -0400
> +++ b/chirp/drivers/leixen.py   Sun Jul 31 21:59:12 2016 -0400
> @@ -362,6 +362,7 @@
>      VENDOR = "Leixen"
>      MODEL = "VV-898"
>      BAUD_RATE = 9600
> +    ALIASES = [LT898UV, ]
>
>      _file_ident = "Leixen"
>      _memsize = 0x2000
> @@ -934,6 +935,12 @@
>              return False
>
>
> +# Declaring Aliases
> +class LT898UV(chirp_common.Alias):
> +    VENDOR = "LUITON"
> +    MODEL = "LT-898UV"
> +
> +
>  @directory.register
>  class JetstreamJT270MRadio(LeixenVV898Radio):
>      """Jetstream JT270M"""

I guess disregard this patch. It isn't working for me today and I 'm
not sure why. I am getting this error

Traceback (most recent call last):
  File "tests\run_tests", line 49, in <module>
    from chirp.drivers import *
  File "../chirp\drivers\leixen.py", line 360, in <module>
    class LeixenVV898Radio(chirp_common.CloneModeRadio):
  File "../chirp\drivers\leixen.py", line 377, in LeixenVV898Radio
    ALIASES = [LT898UV, ]
NameError: name 'LT898UV' is not defined

I will resubmit once I figure out what is wrong with it. Anyone have any ideas?

Jim



More information about the chirp_devel mailing list