From 9ee0dc80c8d022e2c65560cf8366acde0a458eed Mon Sep 17 00:00:00 2001 From: Jim Unroe Date: Thu, 31 Dec 2020 22:47:47 -0500 Subject: [PATCH] Driver Maintenance: retevis_rt1 1. Add to PEP8 manifest 2. Perform PEP8 cleanup fixes #8621 --- chirp/drivers/retevis_rt1.py | 8 ++++---- tests/images/Retevis_RT1.img | Bin 0 -> 1024 bytes tools/cpep8.manifest | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 tests/images/Retevis_RT1.img diff --git a/chirp/drivers/retevis_rt1.py b/chirp/drivers/retevis_rt1.py index 96baa135..dc39aa7e 100644 --- a/chirp/drivers/retevis_rt1.py +++ b/chirp/drivers/retevis_rt1.py @@ -304,7 +304,7 @@ def do_upload(radio): 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 @@ class RT1Radio(chirp_common.CloneModeRadio): 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 @@ class RT1Radio(chirp_common.CloneModeRadio): # testing the file data size if len(filedata) in [0x0400, ]: match_size = True - + # testing the model fingerprint match_model = model_match(cls, filedata) diff --git a/tests/images/Retevis_RT1.img b/tests/images/Retevis_RT1.img new file mode 100644 index 0000000000000000000000000000000000000000..cac0d242942d357f9905ff637cfa365d79ea097f GIT binary patch literal 1024 zcmdtdzfZzY5C`yz6{x=o#Y$gGAq*W%)BvKesmohj6fnX{Li`)tN}|TW#YG1f7vsdn z=mOu1?sZ*67kS3W7&4c(VpdGLgn5bAC+ZW@ zWptTunwzF{1zq7=lUtM0>*#f!^|QWk1NXsR^Vg)k4a_%q!*6tR+^13CUejyJ`!&pK zywofS)2zQ*4@1GWG71CgpsHXH$UVaD^)e_rVo*_N)?dbAzkdF&Rx8Dox36nYp^&PN zM}8jsqshrx>*ntLc4|P)MT|Vafu>ercx*d>PosJrhTw;;>(etM5txObu8(8US1#zf z=`=OK$;Ca65{XnQkw_*1j@vyuj_^6zaa@-g;P8@ccMIJiGv+wdxQRF~ZQJN8$}Nl8 wmL+`uB5ZfP-yz2_lleYMoM%)3((yQB)VQz6nZ=le1#tQ-2LI~gE&cYKPkiOKLjV8( literal 0 HcmV?d00001 diff --git a/tools/cpep8.manifest b/tools/cpep8.manifest index 3ccbb2c1..46a7f7a9 100644 --- a/tools/cpep8.manifest +++ b/tools/cpep8.manifest @@ -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