[chirp_devel] [PATCH] [UV-B5] Revert TX inhibit feature, because the trick only works on b-band. #837

Tom Hayward
Wed Mar 29 14:55:57 PDT 2017


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1490824544 25200
#      Wed Mar 29 14:55:44 2017 -0700
# Node ID 5a9a8e58950c3ab65ecb8ac94bfdac15816c3104
# Parent  647ca47384a3571596b28f95914a47d2019875e2
[UV-B5] Revert TX inhibit feature, because the trick only works on b-band. #837

On a-band, this TX inhibit trick casues the radio to transmit spurious
emissions on multiple frequencies.

diff -r 647ca47384a3 -r 5a9a8e58950c chirp/drivers/uvb5.py
--- a/chirp/drivers/uvb5.py	Wed Mar 29 14:51:30 2017 -0700
+++ b/chirp/drivers/uvb5.py	Wed Mar 29 14:55:44 2017 -0700
@@ -250,7 +250,7 @@
         LOG.debug("Radio ACK'd block at address 0x%04x" % i)
         do_status(radio, "to", i)
 
-DUPLEX = ["", "-", "+", 'off', "split"]
+DUPLEX = ["", "-", "+"]
 UVB5_STEPS = [5.00, 6.25, 10.0, 12.5, 20.0, 25.0]
 CHARSET = "0123456789- ABCDEFGHIJKLMNOPQRSTUVWXYZ/_+*"
 SPECIALS = {
@@ -305,7 +305,7 @@
         rf.valid_tmodes = ["", "Tone", "TSQL", "DTCS", "Cross"]
         rf.valid_cross_modes = ["Tone->Tone", "Tone->DTCS", "DTCS->Tone",
                                 "->Tone", "->DTCS", "DTCS->", "DTCS->DTCS"]
-        rf.valid_duplexes = DUPLEX
+        rf.valid_duplexes = DUPLEX + ["split"]
         rf.can_odd_split = True
         rf.valid_skips = ["", "S"]
         rf.valid_characters = CHARSET
@@ -413,10 +413,6 @@
         mem.skip = "" if _mem.scanadd else "S"
         mem.power = POWER_LEVELS[_mem.highpower]
 
-        if mem.freq == mem.offset and mem.duplex == "-":
-            mem.duplex = "off"
-            mem.offset = 0
-
         if _nam:
             for char in _nam:
                 try:
@@ -459,10 +455,7 @@
 
         _mem.freq = mem.freq / 10
 
-        if mem.duplex == "off":
-            _mem.duplex = DUPLEX.index("-")
-            _mem.offset = _mem.freq
-        elif mem.duplex == "split":
+        if mem.duplex == "split":
             diff = mem.offset - mem.freq
             _mem.duplex = DUPLEX.index("-") if diff < 0 else DUPLEX.index("+")
             _mem.offset = abs(diff) / 10



More information about the chirp_devel mailing list