[chirp_devel] [PATCH] [KT8900D] Add Alias for Surecom S-KT8900D

Jim Unroe
Sat Apr 8 17:13:36 PDT 2017


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1491696355 14400
# Node ID db5569b02efe9feb59ac9f62f659173f974b9cf0
# Parent  55efac8845ad21bd404ecd9c94e8dfcb787c47c1
[KT8900D] Add Alias for Surecom S-KT8900D

Owners of the Surecom S-KT8900D mobile radio can easily be confused as to which
vendor/model to choose in order to program their radio because it is a variant
of the QYT KT7900D mobile radio and not the QYT KT8900D as you would assume.

This patch adds an alias for the Surecom KT-8900D which will automatcally
choose QYT KT7900D as the vendor/model.

related to issue #4697

diff -r 55efac8845ad -r db5569b02efe chirp/drivers/btech.py
--- a/chirp/drivers/btech.py	Sat Apr 08 20:02:48 2017 -0400
+++ b/chirp/drivers/btech.py	Sat Apr 08 20:05:55 2017 -0400
@@ -3602,6 +3602,13 @@
         self._uhf_range = uhf
     
 
+# Declaring Aliases (Clones of the real radios)
+class SKT8900D(chirp_common.Alias):
+    VENDOR = "Surecom"
+    MODEL = "S-KT8900D"
+
+
+# real radios
 @directory.register
 class UV25X2(BTechColor):
     """Baofeng Tech UV25X2"""
@@ -3651,6 +3658,8 @@
     _350_range = (350000000, 371000000)
     _magic = MSTRING_KT8900D
     _fileid = [KT7900D_fp, ]
+    # Clones
+    ALIASES = [SKT8900D, ]
 
 
 @directory.register



More information about the chirp_devel mailing list