<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, May 4, 2013 at 4:55 PM, Dan Smith <span dir="ltr"><<a href="mailto:dsmith@danplanet.com" target="_blank">dsmith@danplanet.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> @@ -290,6 +294,10 @@<br>
> _mem.set_raw("\xFF" * 16)<br>
> return<br>
><br>
> + if mem.duplex == "off":<br>
> + mem.offset = mem.freq<br>
> + mem.duplex = "-"<br>
> +<br>
<br>
</div>This modifies the object that was being passed in, which is "bad". It<br>
won't technically hurt anything when using the GUI, but it could have<br>
other ramifications if the driver is used for something else.<br>
<br>
Instead, can you just handle this near where the _mem object is<br>
changed, like this:<br>
<br>
if mem.duplex == "off":<br>
_mem.duplex = DUPLEX.index("-")<br>
_mem.offset = _mem.freq<br>
else:<br>
<div class="im"> _mem.offset = mem.offset / 10<br>
</div> _mem.duplex = DUPLEX.index(mem.duplex)<br>
<span class="HOEnZb"><font color="#888888"></font></span><br></blockquote></div>Dan,<br></div><div class="gmail_extra">Yes. I'll take care of it. Thanks<br></div><div class="gmail_extra">Jim<br></div></div>