<div dir="ltr"><div>Marco,<br></div>This still isn't accepted by the radio properly. See issue #1479 for details. I have to head to work.<br>Jim<br><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 9, 2014 at 12:32 PM, Marco Filippi IZ3GME <span dir="ltr"><<a href="mailto:iz3gme.marco@gmail.com" target="_blank">iz3gme.marco@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Marco Filippi <<a href="mailto:iz3gme.marco@gmail.com">iz3gme.marco@gmail.com</a>><br>
# Date 1394382139 -3600<br>
# Sun Mar 09 17:22:19 2014 +0100<br>
# Node ID d1081e1a2f00df31c29dc0278d3e64f1e5fe8e9a<br>
# Parent b6ca836716a933248e18fedf10ed8c45f0187848<br>
[KG-UVxD] Fix dtcs pol get for cross tone<br>
<br>
Dtcs pol get was working only for "DTCS" tone mode, it has to be considered also<br>
for cross tone modes.<br>
<br>
Fix #1479<br>
<br>
diff -r b6ca836716a9 -r d1081e1a2f00 chirp/wouxun.py<br>
--- a/chirp/wouxun.py Sun Mar 02 19:37:13 2014 -0500<br>
+++ b/chirp/wouxun.py Sun Mar 09 17:22:19 2014 +0100<br>
@@ -673,6 +673,7 @@<br>
pol = (val & 0x8000) and "R" or "N"<br>
return code, pol<br>
<br>
+ tpol = False<br>
if _mem.tx_tone != 0xFFFF and _mem.tx_tone > 0x2800:<br>
tcode, tpol = _get_dcs(_mem.tx_tone)<br>
mem.dtcs = tcode<br>
@@ -683,6 +684,7 @@<br>
else:<br>
txmode = ""<br>
<br>
+ rpol = False<br>
if _mem.rx_tone != 0xFFFF and _mem.rx_tone > 0x2800:<br>
rcode, rpol = _get_dcs(_mem.rx_tone)<br>
mem.rx_dtcs = rcode<br>
@@ -703,8 +705,8 @@<br>
mem.tmode = "Cross"<br>
mem.cross_mode = "%s->%s" % (txmode, rxmode)<br>
<br>
- if mem.tmode == "DTCS":<br>
- mem.dtcs_polarity = "%s%s" % (tpol, rpol)<br>
+ # always set it even if no dtcs is used<br>
+ mem.dtcs_polarity = "%s%s" % (tpol or "N", rpol or "N")<br>
<br>
if os.getenv("CHIRP_DEBUG"):<br>
print "Got TX %s (%i) RX %s (%i)" % (txmode, _mem.tx_tone,<br>
_______________________________________________<br>
chirp_devel mailing list<br>
<a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
</blockquote></div><br></div></div></div></div>