]> sigrok.org Git - libsigrok.git/commit
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)
commit1f4f98e05cd6cd2f245cdc5e0776fe8af1e092c9
treef75b449f136ff77d2f7e90156a3d00d2dfe4cde2
parentac9534f48a8656a52b1cfc504915531afd0b9f70
asix-sigma: Only open the USB device once (fails with newer libftdi)

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>
src/hardware/asix-sigma/protocol.c