[chirp_devel] [PATCH] [UV-5R] Add Aliases for Various Retevis Radios

Jim Unroe
Sat Jan 7 11:45:32 PST 2017


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1483818251 18000
# Node ID 528e233562afb462e7edf2262d0070a95429a388
# Parent  953e2a13ed3ea09e541c9955c70a6b7c1ce6e2b1
[UV-5R] Add Aliases for Various Retevis Radios

This patch add an alias for each of the following Retevis radio models.

RT5 with 2 power levels (Baofeng UV-5R variant)
RT5 with 3 power levels (Baofeng BF-F8HP variant)
RT-5RV (Baofeng UV-5R variant)

releated to #4375

diff -r 953e2a13ed3e -r 528e233562af chirp/drivers/uv5r.py
--- a/chirp/drivers/uv5r.py	Sat Jan 07 12:05:37 2017 -0500
+++ b/chirp/drivers/uv5r.py	Sat Jan 07 14:44:11 2017 -0500
@@ -1633,9 +1633,24 @@
     MODEL = "RT-5R"
 
 
+class RT5RVAlias(chirp_common.Alias):
+    VENDOR = "Retevis"
+    MODEL = "RT-5RV"
+
+
+class RT5Alias(chirp_common.Alias):
+    VENDOR = "Retevis"
+    MODEL = "RT5"
+
+
+class RT5_TPAlias(chirp_common.Alias):
+    VENDOR = "Retevis"
+    MODEL = "RT5(tri-power)"
+
+
 @directory.register
 class BaofengUV5RGeneric(BaofengUV5R):
-    ALIASES = [UV5XAlias, RT5RAlias]
+    ALIASES = [UV5XAlias, RT5RAlias, RT5RVAlias, RT5Alias]
 
 
 @directory.register
@@ -1719,6 +1734,7 @@
 class BaofengBFF8HPRadio(BaofengUV5R):
     VENDOR = "Baofeng"
     MODEL = "BF-F8HP"
+    ALIASES = [RT5_TPAlias, ]
     _basetype = BASETYPE_F8HP
     _idents = [UV5R_MODEL_291,
                UV5R_MODEL_A58



More information about the chirp_devel mailing list