[chirp_devel] [senhaix_8800] New Model #7997

Dan Smith
Thu Nov 19 12:30:23 PST 2020


> # HG changeset patch
> # User Nicolas Pike <nicolas.jon.pike at gmail.com>
> # Date 1605379022 0
> #      Sat Nov 14 18:37:02 2020 +0000
> # Node ID f0e565a301835f2358ca2842b22e8cfc708c796b
> # Parent  98b8a850b0f136c77fe09a4922c32a2a28f708be
> [senhaix_8800] New Model #7997
> 
> diff -r 98b8a850b0f1 -r f0e565a30183 chirp/drivers/senhaix_8800.py
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/chirp/drivers/senhaix_8800.py	Sat Nov 14 18:37:02 2020 +0000
> @@ -0,0 +1,980 @@
> +# Copyright 2020 Jiauxn Yang <jiaxun.yang at flygoat.com>

Is this someone else's code? Obviously I can't accept someone else's copyrighted code without some indication that they intend it to be redistributed.

> + at directory.register
> +class SenHaiX8800Radio(chirp_common.CloneModeRadio):
> +    """SenHaiX 8800"""
> +    VENDOR = "SenHaiX"
> +    MODEL = "8800"

I just want to check, especially because of the above: is this substantially similar to any other drivers in tree?

> +    @classmethod
> +    def match_model(cls, filedata, filename):
> +        if len(filedata) in [MEM_SIZE]:
> +            return True
> +
> +        return False

New drivers shouldn't be adding these handlers, you can just rely on the automatic metadata-based matching method from here on out.

Can you please provide a radio image so I can test this?

Thanks!

--Dan


More information about the chirp_devel mailing list