[chirp_devel] [PATCH] Driver Maintenance: retevis_rt21.py
Jim Unroe
Thu Dec 31 20:02:51 PST 2020
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1609473741 18000
# Thu Dec 31 23:02:21 2020 -0500
# Node ID 9cc1087843d14fe429bfbd72d50de6f8065a490d
# Parent d2bf7bc5e74ccd1bd453ee429ac2d4140e9394ae
Driver Maintenance: retevis_rt21.py
1. Add to PEP8 manifest
2. Perform PEP8 cleanup
fixes #8623
diff -r d2bf7bc5e74c -r 9cc1087843d1 chirp/drivers/retevis_rt21.py
--- a/chirp/drivers/retevis_rt21.py Thu Dec 31 22:47:47 2020 -0500
+++ b/chirp/drivers/retevis_rt21.py Thu Dec 31 23:02:21 2020 -0500
@@ -38,7 +38,7 @@
unknown2:3;
u8 unknown3:2,
highpower:1, // Power Level
- wide:1, // Bandwidth
+ wide:1, // Bandwidth
unknown4:4;
u8 scramble_type:4,
unknown5:4;
@@ -57,14 +57,14 @@
u8 use_scramble; // Scramble Enable
u8 unknown1[2];
u8 voice; // Voice Annunciation
- u8 tot; // Time-out Timer
- u8 totalert; // Time-out Timer Pre-alert
+ u8 tot; // Time-out Timer
+ u8 totalert; // Time-out Timer Pre-alert
u8 unknown2[2];
- u8 squelch; // Squelch Level
- u8 save; // Battery Saver
+ u8 squelch; // Squelch Level
+ u8 save; // Battery Saver
u8 unknown3[3];
- u8 use_vox; // VOX Enable
- u8 vox; // VOX Gain
+ u8 use_vox; // VOX Enable
+ u8 vox; // VOX Gain
} settings;
#seekto 0x017E;
@@ -78,7 +78,7 @@
chirp_common.PowerLevel("High", watts=2.50)]
-RT21_DTCS = sorted(chirp_common.DTCS_CODES +
+RT21_DTCS = sorted(chirp_common.DTCS_CODES +
[17, 50, 55, 135, 217, 254, 305, 645, 765])
BCL_LIST = ["Off", "Carrier", "QT/DQT"]
@@ -382,7 +382,8 @@
rs = RadioSetting("scramble_type", "Scramble Type",
RadioSettingValueList(SCRAMBLE_LIST,
- SCRAMBLE_LIST[_mem.scramble_type - 8]))
+ SCRAMBLE_LIST[
+ _mem.scramble_type - 8]))
mem.extra.append(rs)
return mem
@@ -518,7 +519,7 @@
basic.append(rs)
def apply_pf1_listvalue(setting, obj):
- LOG.debug("Setting value: "+ str(setting.value) + " from list")
+ LOG.debug("Setting value: " + str(setting.value) + " from list")
val = str(setting.value)
index = PF1_CHOICES.index(val)
val = PF1_VALUES[index]
@@ -564,7 +565,7 @@
except Exception, e:
LOG.debug(element.get_name())
raise
-
+
@classmethod
def match_model(cls, filedata, filename):
match_size = False
@@ -581,4 +582,3 @@
return True
else:
return False
-
diff -r d2bf7bc5e74c -r 9cc1087843d1 tools/cpep8.manifest
--- a/tools/cpep8.manifest Thu Dec 31 22:47:47 2020 -0500
+++ b/tools/cpep8.manifest Thu Dec 31 23:02:21 2020 -0500
@@ -76,6 +76,7 @@
./chirp/drivers/puxing.py
./chirp/drivers/radioddity_r2.py
./chirp/drivers/retevis_rt1.py
+./chirp/drivers/retevis_rt21.py
./chirp/drivers/retevis_rt22.py
./chirp/drivers/rfinder.py
./chirp/drivers/template.py
More information about the chirp_devel
mailing list