]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: device scan fixes
authorBert Vermeulen <redacted>
Fri, 13 Jul 2012 00:30:42 +0000 (02:30 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 08:27:37 +0000 (10:27 +0200)
hardware/fx2lafw/fx2lafw.c

index 31581ee65f8ec109d023228aeda6c1f2c5d343cd..bdc6b42366f5e887ae006a1575a6061ee20e2924 100644 (file)
@@ -471,10 +471,11 @@ static GSList *hw_scan(GSList *options)
                        prof->vendor, prof->model, prof->model_version);
                if (!sdi)
                        return 0;
+               sdi->driver = fdi;
 
                /* Fill in probelist according to this device's profile. */
                num_logic_probes = prof->dev_caps & DEV_CAPS_16BIT ? 16 : 8;
-               for (j = 0; i < num_logic_probes; j++) {
+               for (j = 0; j < num_logic_probes; j++) {
                        if (!(probe = sr_probe_new(j, SR_PROBE_LOGIC, TRUE,
                                        probe_names[j])))
                                return 0;