[chirp_devel] Fwd: [PATCH] [RT16] Add support for Retevis RT16

Jim Unroe
Tue Jun 8 10:27:18 PDT 2021


CHIRP Radio Images (*.img) file for testing attached.

Jim KC9HI

---------- Forwarded message ---------
From: Jim Unroe <kc9hi at comcast.net>
Date: Tue, Jun 8, 2021 at 1:23 PM
Subject: [PATCH] [RT16] Add support for Retevis RT16
To: <Rock.Unroe at gmail.com>


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1623172940 14400
#      Tue Jun 08 13:22:20 2021 -0400
# Node ID 54895dbfcb7db8b5e5ae426ea0f51ce2e7f63a03
# Parent  55f1b49b0001f07b54bc94e28a59cd7cb1c91261
[RT16] Add support for Retevis RT16

This patch adds support for the RT16 variant of the Baofeng BF-T8

related to #8263

diff -r 55f1b49b0001 -r 54895dbfcb7d chirp/drivers/bf-t8.py
--- a/chirp/drivers/bf-t8.py    Tue Jun 08 13:03:12 2021 -0400
+++ b/chirp/drivers/bf-t8.py    Tue Jun 08 13:22:20 2021 -0400
@@ -639,15 +639,16 @@
         rset.set_apply_callback(myset_freq, _settings, "fmcur", 10)
         basic.append(rset)

-        rs = RadioSettingValueList(WORKMODE_LIST,
-                                   WORKMODE_LIST[_settings.workmode])
-        rset = RadioSetting("workmode", "Work Mode", rs)
-        basic.append(rset)
+        if not self._frs:
+            rs = RadioSettingValueList(WORKMODE_LIST,
+                                       WORKMODE_LIST[_settings.workmode])
+            rset = RadioSetting("workmode", "Work Mode", rs)
+            basic.append(rset)

-        rs = RadioSettingValueList(AREA_LIST, AREA_LIST[_settings.area])
-        rs.set_mutable(False)
-        rset = RadioSetting("area", "Area", rs)
-        basic.append(rset)
+            rs = RadioSettingValueList(AREA_LIST, AREA_LIST[_settings.area])
+            rs.set_mutable(False)
+            rset = RadioSetting("area", "Area", rs)
+            basic.append(rset)

         return top

@@ -700,3 +701,12 @@
 @directory.register
 class BaofengBFT8Generic(BFT8Radio):
     ALIASES = [BFU9Alias, AR8Alias, ]
+
+
+ at directory.register
+class RetevisRT16(BFT8Radio):
+    VENDOR = "Retevis"
+    MODEL = "RT16"
+
+    _upper = 22
+    _frs = _upper == 22
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Retevis_RT16.img
Type: application/octet-stream
Size: 3077 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20210608/8c408713/attachment-0001.img 


More information about the chirp_devel mailing list