[chirp_devel] [PATCH] Driver Maintenance: retevis_rt26.py
# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1609475012 18000 # Thu Dec 31 23:23:32 2020 -0500 # Node ID c27c4a4c2eb0ab814cb5e40c89f0c020c2849381 # Parent c5dfa079ca7e77f508c607848bac320ce2e365a4 Driver Maintenance: retevis_rt26.py
1. Add to PEP8 manifest 2. Perform PEP8 cleanup
fixes #8627
diff -r c5dfa079ca7e -r c27c4a4c2eb0 chirp/drivers/retevis_rt26.py --- a/chirp/drivers/retevis_rt26.py Thu Dec 31 23:14:29 2020 -0500 +++ b/chirp/drivers/retevis_rt26.py Thu Dec 31 23:23:32 2020 -0500 @@ -119,12 +119,12 @@ DTMF_CHARSET = NUMERIC_CHARSET + list("ABCD*#")
RT26_POWER_LEVELS = [chirp_common.PowerLevel("Low", watts=5.00), - chirp_common.PowerLevel("High", watts=10.00)] + chirp_common.PowerLevel("High", watts=10.00)]
RT26_DTCS = sorted(chirp_common.DTCS_CODES + [645])
LIST_PTTID = ["Off", "BOT", "EOT", "Both"] -LIST_SHORT_PRESS = ["Off", "Monitor On/Off", "", "Scan", "Alarm", +LIST_SHORT_PRESS = ["Off", "Monitor On/Off", "", "Scan", "Alarm", "Power High/Low"] LIST_LONG_PRESS = ["Off", "Monitor On/Off", "Monitor(momentary)", "Scan", "Alarm", "Power High/Low"] @@ -159,18 +159,18 @@ "scandelay": LIST_SCANDELAY, "digtime": LIST_DIGTIME, "digdelay": LIST_DIGDELAY, - "starhash" : LIST_STARHASH, - "codespace" : LIST_CODESPACE, - "groupcode" : LIST_GROUPCODE, - "resettime" : LIST_RESETTIME, - "decodeto" : LIST_DECODETO, - "stuntype" : LIST_STUNTYPE, + "starhash": LIST_STARHASH, + "codespace": LIST_CODESPACE, + "groupcode": LIST_GROUPCODE, + "resettime": LIST_RESETTIME, + "decodeto": LIST_DECODETO, + "stuntype": LIST_STUNTYPE, }
# Retevis RT26 fingerprints RT26_UHF_fp = "PDK80" + "\xF3\x00\x00" # RT26 UHF model
-MODELS = [RT26_UHF_fp,] +MODELS = [RT26_UHF_fp, ]
def _model_from_data(data): @@ -710,8 +710,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: @@ -842,7 +842,7 @@ LIST_STUNTYPE[_mem.dtmf.stuntype])) dtmf.append(rs)
- ## setup stun entry + # setup stun entry objname = "code3" strname = "Stun Code" dtmfsetting = getattr(_mem.dtmf, objname) diff -r c5dfa079ca7e -r c27c4a4c2eb0 tools/cpep8.manifest --- a/tools/cpep8.manifest Thu Dec 31 23:14:29 2020 -0500 +++ b/tools/cpep8.manifest Thu Dec 31 23:23:32 2020 -0500 @@ -79,6 +79,7 @@ ./chirp/drivers/retevis_rt21.py ./chirp/drivers/retevis_rt22.py ./chirp/drivers/retevis_rt23.py +./chirp/drivers/retevis_rt26.py ./chirp/drivers/rfinder.py ./chirp/drivers/template.py ./chirp/drivers/th350.py
participants (1)
-
Jim Unroe