[chirp_devel] [PATCH] [KT-8900D] Support Radios With Missing TMR Choice

Jim Unroe
Sat Apr 27 12:13:37 PDT 2019


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1556390604 14400
# Node ID 4b0077686e2ec5ba68c283bc61842a60a6be39c9
# Parent  2ad6dc187df9237a746aad6fc1fe511a5e04c696
[KT-8900D] Support Radios With Missing TMR Choice

A bug with the TMR feature was discovered during the initial development of
this driver. The 15 choices listed in the TMR menu of the radio did not match
the 15 choices of same setting in the factory programming software. They each
had a choice available that the other did not have. The bug was reported.

Soon after that a pre-production BTech model was received from Baofeng Tech
that expanded the TMR menu to have a complete set of 16 choices. It was
assumed that the other Vendor/Model variants would receive the same update
to the TMR menu. This 16 choice layout is what the initial CHIRP driver for
these radios was then based on. Apparently (all?) non-BTech variants continue
to ship with the M+A+B+D choice missing from the TMR menu.

This patch assumes that all non-BTech models have the M+A+B+D choice missing
from their TMR menu and drops it from the list of choices displayed in CHIRP.
This 15 choice list matches both the choices listed in the QYT KT-7900D and
KT-8900D radio's TMR menu and the list of choices shown in the User's Manual
furnished with these radios.

#5999

diff -r 2ad6dc187df9 -r 4b0077686e2e chirp/drivers/btech.py
--- a/chirp/drivers/btech.py	Sat Apr 20 11:16:18 2019 -0400
+++ b/chirp/drivers/btech.py	Sat Apr 27 14:43:24 2019 -0400
@@ -1036,6 +1036,10 @@
 
         # Basic
         if self.COLOR_LCD:
+            if not self.VENDOR == "BTECH":
+                # BTech radios support all 16 available TMR choices
+                # Other Vendor/Model radios are missing a choice
+                del LIST_TMR[12] # remove M + A + B + D
             tmr = RadioSetting("settings.tmr", "Transceiver multi-receive",
                                RadioSettingValueList(
                                    LIST_TMR,



More information about the chirp_devel mailing list