ao-tools/ao-cal-freq: Re-open usb device each try
authorKeith Packard <keithp@keithp.com>
Sat, 3 Sep 2016 04:36:36 +0000 (23:36 -0500)
committerKeith Packard <keithp@keithp.com>
Sat, 3 Sep 2016 04:36:36 +0000 (23:36 -0500)
commit30e8f003381c30434058905f53f5a219ac5feb4f
tree0ef92b1985b72d78decbd39f879e5f056ee55027
parent3ea30c1909b3ae23918ea6d0a53d2c4065b08763
ao-tools/ao-cal-freq: Re-open usb device each try

Instead of trying to re-use the same file descriptor, close and
re-open the device each time around the loop to avoid getting stuck
when calibrating TeleMega boards.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-cal-freq/ao-cal-freq.c