]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: Only open the USB device once (fails with newer libftdi)
authorGerhard Sittig <redacted>
Sun, 25 Jun 2017 10:24:13 +0000 (12:24 +0200)
committerUwe Hermann <redacted>
Tue, 27 Jun 2017 11:28:25 +0000 (13:28 +0200)
The asix-sigma driver was reported to fail in combination with newer
libftdi versions, because the firmware upload routine opened again an
already opened device, and then failed to claim the interface. Which was
not fatal before with previous libftdi versions.

Remove the redundant open call. Remove the local FTDI context variable,
which brings the firmware upload routine in line with all other calls
that communicate to the USB device.

This fixes bug #471.

Suggested-By: Marian Cingel <redacted>

No differences found