[chirp_devel] [PATCH] [ft4] store tx freq correctly [#6601]
DanClemmensen
Wed Mar 13 15:03:49 PDT 2019
# HG changeset patch
# User DanClemmensen <DanClemmensen at gmail.com>
# Date 1552514596 25200
# Wed Mar 13 15:03:16 2019 -0700
# Node ID bc39e1adcee5a2c5c5a34d82d676534d4db9670f
# Parent 9ba25a3c6a5e7d74daedb8c6afc1766d72fc2714
[ft4] store tx freq correctly [#6601]
diff -r 9ba25a3c6a5e -r bc39e1adcee5 chirp/drivers/ft4.py
--- a/chirp/drivers/ft4.py Wed Mar 13 13:01:13 2019 -0700
+++ b/chirp/drivers/ft4.py Wed Mar 13 15:03:16 2019 -0700
@@ -1040,7 +1040,8 @@
store_bit(self._memobj.enable, ndx, False)
return
- _mem.freq = mem.freq / 10
+ txfreq = mem.freq / 10 # really. RX freq is used for TX base
+ _mem.freq = txfreq
self.encode_sql(mem, _mem)
if mem.power:
_mem.tx_pwr = POWER_LEVELS.index(mem.power)
@@ -1055,7 +1056,6 @@
store_bit(self._memobj.scan, ndx, SKIPS.index(mem.skip))
nametrim = (mem.name + " ")[:8]
self._memobj.names[ndx].chrs = bytearray(nametrim, "ascii")
- txfreq = 0
if mem.duplex == "split":
txfreq = mem.offset / 10
duplex = "off" # radio ignores when tx != rx
More information about the chirp_devel
mailing list