]> sigrok.org Git - libsigrok.git/commit
fx2lafw: Use physical USB connection instead of sdi->index
authorSoeren Apel <redacted>
Fri, 26 Sep 2014 17:25:36 +0000 (19:25 +0200)
committerBert Vermeulen <redacted>
Sat, 27 Sep 2014 10:49:44 +0000 (12:49 +0200)
commit5e2c86eb3184fdc57341f6a1dd482f83556bf1d9
tree86071af439159076f595666522351b54df4d0c2a
parent8143cfdc90fc164e083a19c60b5b5d32a6b34f47
fx2lafw: Use physical USB connection instead of sdi->index

Previously, sdi->index was used to tell several identical fx2lafw-compatible
devices apart. This was a bit of a hack, so this patch makes it use physical
device connections instead. They're guaranteed to remain the same even if
the USB device reconnects.
src/hardware/fx2lafw/api.c
src/hardware/fx2lafw/protocol.c