[chirp_devel] [PATCH] Driver Maintenance: retevis_rt1
Jim Unroe
Thu Dec 31 19:54:35 PST 2020
CHIRP Radio Images (*.img) file to test against.
Jim KC9HI
On Thu, Dec 31, 2020 at 10:48 PM Jim Unroe <rock.unroe at gmail.com> wrote:
>
> # HG changeset patch
> # User Jim Unroe <rock.unroe at gmail.com>
> # Date 1609472867 18000
> # Thu Dec 31 22:47:47 2020 -0500
> # Node ID d2bf7bc5e74ccd1bd453ee429ac2d4140e9394ae
> # Parent 4875b98c7c39959e200b63e4f58ee1279731a42c
> Driver Maintenance: retevis_rt1
>
> 1. Add to PEP8 manifest
> 2. Perform PEP8 cleanup
>
> fixes #8621
>
> diff -r 4875b98c7c39 -r d2bf7bc5e74c chirp/drivers/retevis_rt1.py
> --- a/chirp/drivers/retevis_rt1.py Thu Dec 31 22:29:14 2020 -0500
> +++ b/chirp/drivers/retevis_rt1.py Thu Dec 31 22:47:47 2020 -0500
> @@ -304,7 +304,7 @@
>
> bands = ["VHF", "UHF"]
> image_band = radio_band = "unknown"
> - for i in range(0,2):
> + for i in range(0, 2):
> if image_model == MODELS[i]:
> image_band = bands[i]
> if radio_model == MODELS[i]:
> @@ -672,8 +672,8 @@
> val = _settings.scanspeed
> rs = RadioSetting("scanspeed", "Scan Speed[ms]",
> RadioSettingValueList(
> - LIST_SCANSPEED,
> - LIST_SCANSPEED[val]))
> + LIST_SCANSPEED,
> + LIST_SCANSPEED[val]))
> basic.append(rs)
>
> if _settings.scandelay > 27:
> @@ -738,7 +738,7 @@
> # testing the file data size
> if len(filedata) in [0x0400, ]:
> match_size = True
> -
> +
> # testing the model fingerprint
> match_model = model_match(cls, filedata)
>
> diff -r 4875b98c7c39 -r d2bf7bc5e74c tools/cpep8.manifest
> --- a/tools/cpep8.manifest Thu Dec 31 22:29:14 2020 -0500
> +++ b/tools/cpep8.manifest Thu Dec 31 22:47:47 2020 -0500
> @@ -75,6 +75,7 @@
> ./chirp/drivers/mursv1.py
> ./chirp/drivers/puxing.py
> ./chirp/drivers/radioddity_r2.py
> +./chirp/drivers/retevis_rt1.py
> ./chirp/drivers/retevis_rt22.py
> ./chirp/drivers/rfinder.py
> ./chirp/drivers/template.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Retevis_RT1.img
Type: application/octet-stream
Size: 1024 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20201231/f765f8a2/attachment-0001.img
More information about the chirp_devel
mailing list