hantek-dso: instance list fix

This commit is contained in:
Bert Vermeulen 2012-07-13 22:18:01 +02:00
parent 10e5cbede8
commit f8c617cf4c
1 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,8 @@
#include <libusb.h>
extern libusb_context *usb_context;
extern GSList *dev_insts;
extern struct sr_dev_driver hantek_dso_driver_info;
static struct sr_dev_driver *hdi = &hantek_dso_driver_info;
static int send_begin(struct context *ctx)
@ -112,7 +113,7 @@ SR_PRIV int dso_open(int dev_index)
struct context *ctx;
int err, skip, i;
if (!(sdi = sr_dev_inst_get(dev_insts, dev_index)))
if (!(sdi = sr_dev_inst_get(hdi->instances, dev_index)))
return SR_ERR_ARG;
ctx = sdi->priv;