[chirp_devel] Baofeng UV-B5/B6 'Unsupported Model' Problem
Jim Unroe
Fri Jul 26 19:50:34 PDT 2013
On Fri, Jul 26, 2013 at 10:41 PM, Dan Smith <dsmith at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20130726/1418c3c3/attachment-0001.html
More information about the chirp_devel
mailing list