<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 26, 2013 at 10:41 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">> The second part changes based on what settings have been programmed<br>
> in the radio. I've seen at least 2 different values in addition to<br>
> the original 'x'.<br>
<br>
</div>Ah, I should have looked at the code, I thought you were making an<br>
example. If there are three known values, I'd just check for them. If<br>
there end up being lots, then maybe we should do something more like<br>
what you had where we try to capture the first one. Checking for any of<br>
the three is best done like this:<br>
<br>
ack = radio.pipe.read(1)<br>
if ack not in ('x', 'y', 'z'):<br>
raise ...<br></blockquote></div><br></div><div class="gmail_extra">I'll do it this way with the 3 captured values that I have. I'll then do some more testing. If I get a failure because of a 4th value, I'll capture the first. Otherwise, I'll leave it alone.<br>
<br></div><div class="gmail_extra">This will get rid of a big annoyance and allow me to close a few issues.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,<br></div><div class="gmail_extra">Jim<br>
</div></div>