demo: Probe indexes should be unique, even if the types are different.

This commit is contained in:
Bert Vermeulen 2014-01-21 18:19:57 +01:00
parent eca2f85213
commit 03aa381efb
1 changed files with 2 additions and 1 deletions

View File

@ -324,7 +324,8 @@ static GSList *scan(GSList *options)
/* Analog probes, probe groups and pattern generators. */
for (i = 0; i < num_analog_probes; i++) {
sprintf(probe_name, "A%d", i);
if (!(probe = sr_probe_new(i, SR_PROBE_ANALOG, TRUE, probe_name)))
if (!(probe = sr_probe_new(i + num_logic_probes,
SR_PROBE_ANALOG, TRUE, probe_name)))
return NULL;
sdi->probes = g_slist_append(sdi->probes, probe);