On Fri, Jul 26, 2013 at 10:41 PM, Dan Smith <dsmith@danplanet.com> wrote:
> The second part changes based on what settings have been programmed
> in the radio. I've seen at least 2 different values in addition to
> the original 'x'.

Ah, I should have looked at the code, I thought you were making an
example. If there are three known values, I'd just check for them. If
there end up being lots, then maybe we should do something more like
what you had where we try to capture the first one. Checking for any of
the three is best done like this:

  ack = radio.pipe.read(1)
  if ack not in ('x', 'y', 'z'):
     raise ...

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.

This will get rid of a big annoyance and allow me to close a few issues.

Thanks,
Jim