]> sigrok.org Git - libsigrok.git/commitdiff
Remove sdi->index from openbench-logic-sniffer and pipistrello-ols
authorSoeren Apel <redacted>
Sat, 27 Sep 2014 19:56:18 +0000 (21:56 +0200)
committerBert Vermeulen <redacted>
Mon, 29 Sep 2014 23:42:58 +0000 (01:42 +0200)
src/hardware/openbench-logic-sniffer/api.c
src/hardware/pipistrello-ols/api.c

index a3d653071f5762449fe13fc5f07c30f0fcb144ea..ad1dece4402018b338351d6d3c4c8d9b120686bf 100644 (file)
@@ -173,7 +173,6 @@ static GSList *scan(GSList *options)
        if (g_poll(&probefd, 1, 10) > 0) {
                /* Got metadata. */
                sdi = get_metadata(serial);
-               sdi->index = 0;
                devc = sdi->priv;
        } else {
                /* Not an OLS -- some other board that uses the sump protocol. */
index 9287509f8e3c1088f4d0376524e0e1df2dc5f00b..2db23fd042eaea1ea39a1de1c194576b5d1d0d78 100644 (file)
@@ -185,7 +185,6 @@ static GSList *scan(GSList *options)
 
        /* Parse the metadata. */
        sdi = p_ols_get_metadata((uint8_t *)buf, bytes_read, devc);
-       sdi->index = 0;
 
        /* Configure samplerate and divider. */
        if (p_ols_set_samplerate(sdi, DEFAULT_SAMPLERATE) != SR_OK)