[chirp_devel] [PATCH 0 of 1 ] Patch rebase
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1395217358 -3600 # Wed Mar 19 09:22:38 2014 +0100 # Node ID 6089e754036282ac2a4dc703d8a8517c6a1e9f5d # Parent 145dcd53a6695bc8bd2c6b00367f9b6920149029 [KG-UVxD] Fix dtcs pol get for cross tone
Dtcs pol get was working only for "DTCS" tone mode, it has to be considered also for cross tone modes.
Fix #1479
diff -r 145dcd53a669 -r 6089e7540362 chirp/wouxun.py --- a/chirp/wouxun.py Sat Mar 08 12:57:29 2014 -0500 +++ b/chirp/wouxun.py Wed Mar 19 09:22:38 2014 +0100 @@ -673,6 +673,7 @@ pol = (val & 0x8000) and "R" or "N" return code, pol
+ tpol = False if _mem.tx_tone != 0xFFFF and _mem.tx_tone > 0x2800: tcode, tpol = _get_dcs(_mem.tx_tone) mem.dtcs = tcode @@ -683,6 +684,7 @@ else: txmode = ""
+ rpol = False if _mem.rx_tone != 0xFFFF and _mem.rx_tone > 0x2800: rcode, rpol = _get_dcs(_mem.rx_tone) mem.rx_dtcs = rcode @@ -703,8 +705,8 @@ mem.tmode = "Cross" mem.cross_mode = "%s->%s" % (txmode, rxmode)
- if mem.tmode == "DTCS": - mem.dtcs_polarity = "%s%s" % (tpol, rpol) + # always set it even if no dtcs is used + mem.dtcs_polarity = "%s%s" % (tpol or "N", rpol or "N")
if os.getenv("CHIRP_DEBUG"): print "Got TX %s (%i) RX %s (%i)" % (txmode, _mem.tx_tone,
participants (1)
-
Marco Filippi IZ3GME