---------- Forwarded message --------- From: Jim Unroe kc9hi@comcast.net Date: Mon, May 31, 2021 at 10:55 PM Subject: [PATCH] [GT-5R] Fix TX-Inhibit Outside of Legal Limits To: Rock.Unroe@gmail.com
# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1622515837 14400 # Mon May 31 22:50:37 2021 -0400 # Node ID cf1a20fecd4e900842bdec32c98b5019501fb6a9 # Parent b6e53c252d4add50ffd6da5e7b980ab405034770 [GT-5R] Fix TX-Inhibit Outside of Legal Limits
The current enforcement only allows TX on the following frequencies. 144.000, 148.000, 420.000 and 450.000 MHz.
This patch corrects the logic to allow TX on frequencies within the 144.000-148.000 MHz and 420.000-450.000 MHz ranges. Frequencies outside of these ranges are set to Duplex = "off" (TX disabled).
Related to #9077
diff -r b6e53c252d4a -r cf1a20fecd4e chirp/drivers/uv5r.py --- a/chirp/drivers/uv5r.py Mon May 31 22:09:29 2021 -0400 +++ b/chirp/drivers/uv5r.py Mon May 31 22:50:37 2021 -0400 @@ -1995,7 +1995,8 @@ # If memory is outside the TX limits, the radio will refuse # transmit. Radioddity asked for us to enforce this behavior # in chirp for consistency. - if mem.freq not in self.vhftx and mem.freq not in self.uhftx: + if not (mem.freq >= self.vhftx[0] and mem.freq < self.vhftx[1]) and \ + not (mem.freq >= self.uhftx[0] and mem.freq < self.uhftx[1]): LOG.info('Memory frequency outside TX limits of radio; ' 'forcing duplex=off') mem.duplex = 'off'