Remove sdi->index from openbench-logic-sniffer and pipistrello-ols
This commit is contained in:
parent
395206f460
commit
71580ef1f3
|
@ -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. */
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue