Fixed bug in firmware loading with multiple usbduxfast boards.
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 6 Dec 2008 15:43:23 +0000 (15:43 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 6 Dec 2008 15:43:23 +0000 (15:43 +0000)
comedi/drivers/usbduxfast.c

index 57e30de3465c46297354ec06ee8614cc69242a77..f1526ebdfc60940a5382230db46f9f873ab400ca 100644 (file)
@@ -1607,7 +1607,7 @@ static int usbduxfast_attach(comedi_device * dev, comedi_devconfig * it)
        // trying to upload the firmware into the chip
        if (comedi_aux_data(it->options, 0) &&
                it->options[COMEDI_DEVCONF_AUX_DATA_LENGTH]) {
-               read_firmware(usbduxfastsub,
+               read_firmware(&usbduxfastsub[index],
                        comedi_aux_data(it->options, 0),
                        it->options[COMEDI_DEVCONF_AUX_DATA_LENGTH]);
        }