[chirp_devel] [PATCH] [rt22] add support for Retevis RT622 radio
Dmitry Baryshkov
Sun Oct 18 18:03:11 PDT 2020
# HG changeset patch
# User Dmitry Baryshkov <dbaryshkov at gmail.com>
# Date 1603069004 -10800
# Mon Oct 19 03:56:44 2020 +0300
# Node ID de5d23f4a4235f42a3dee54e2054def2ac224572
# Parent 98b8a850b0f136c77fe09a4922c32a2a28f708be
[rt22] add support for Retevis RT622 radio
RT622 is a close rival to RT22. It uses different model id, but is otherwise
equivalent to RT22. Add new fileid to the list and register clone radio class.
diff --git a/chirp/drivers/retevis_rt22.py b/chirp/drivers/retevis_rt22.py
--- a/chirp/drivers/retevis_rt22.py
+++ b/chirp/drivers/retevis_rt22.py
@@ -297,7 +297,7 @@
]
_memsize = 0x0400
_block_size = 0x40
- _fileid = ["P32073", "P3" + "\x00\x00\x00" + "3"]
+ _fileid = ["P32073", "P3" + "\x00\x00\x00" + "3", "P3207!"]
def get_features(self):
rf = chirp_common.RadioFeatures()
@@ -627,6 +627,12 @@
return False
@directory.register
+class RT622(RT22Radio):
+ """Retevis RT622"""
+ VENDOR = "Retevis"
+ MODEL = "RT622"
+
+ at directory.register
class KDC1(RT22Radio):
"""WLN KD-C1"""
VENDOR = "WLN"
More information about the chirp_devel
mailing list