[chirp_devel] [PATCH] [AT-5888UV] Add Anytone AT-5888UV Valid Tuning Steps

Jim Unroe
Sun Jun 14 08:01:35 PDT 2020


Attached is a CHIRP Radio Images (*.img) file that can be added for
testing purposes.

Jim KC9HI

On Sun, Jun 14, 2020 at 10:20 AM Jim Unroe via chirp_devel
<chirp_devel at intrepid.danplanet.com> wrote:
>
> # HG changeset patch
> # User Jim Unroe <rock.unroe at gmail.com>
> # Date 1592094953 14400
> #      Sat Jun 13 20:35:53 2020 -0400
> # Node ID 9fa4733966659688715e0caf8400e9117dd3b8d1
> # Parent  8d6dbc13b671ee1ad7c85eac8396fe82e835b7c1
> [AT-5888UV] Add Anytone AT-5888UV Valid Tuning Steps
>
> Fixes #7835
>
> diff -r 8d6dbc13b671 -r 9fa473396665 chirp/drivers/anytone.py
> --- a/chirp/drivers/anytone.py  Fri Jun 12 16:00:59 2020 -0400
> +++ b/chirp/drivers/anytone.py  Sat Jun 13 20:35:53 2020 -0400
> @@ -353,6 +353,7 @@
>          rf.has_settings = True
>          rf.has_bank = False
>          rf.has_cross = True
> +        rf.valid_tuning_steps = [2.5, 5, 6.25, 10, 12.5, 15, 20, 25, 30, 50]
>          rf.has_tuning_step = False
>          rf.has_rx_dtcs = True
>          rf.valid_skips = ["", "S", "P"]
> @@ -410,6 +411,12 @@
>              return mem
>
>          mem.freq = int(_mem.freq) * 100
> +
> +        # compensate for 6.25 and 12.5 kHz tuning steps, add 500 Hz if needed
> +        lastdigit = int(_mem.freq) % 10
> +        if (lastdigit == 2 or lastdigit == 7):
> +            mem.freq += 50
> +
>          mem.offset = int(_mem.offset) * 100
>          mem.name = str(_mem.name).rstrip()
>          mem.duplex = DUPLEXES[_mem.duplex]
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AnyTone_5888UV.img
Type: application/octet-stream
Size: 32945 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20200614/79232768/attachment-0001.img 


More information about the chirp_devel mailing list