CHIRP Radio Images (*.img) file for testing attached.
Jim KC9HI
---------- Forwarded message --------- From: Jim Unroe kc9hi@comcast.net Date: Tue, Jun 8, 2021 at 1:23 PM Subject: [PATCH] [RT16] Add support for Retevis RT16 To: Rock.Unroe@gmail.com
# HG changeset patch # User Jim Unroe rock.unroe@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, ] + + +@directory.register +class RetevisRT16(BFT8Radio): + VENDOR = "Retevis" + MODEL = "RT16" + + _upper = 22 + _frs = _upper == 22