X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=tests%2Flib.c;h=fa823c7aca8985680aa36704951a77fd89ea6806;hb=f3ca73edd29a48f8cc19755df629ab2bc9478eea;hp=faffc3a9f64d452c439736924772baf8ac29f7fa;hpb=17794067f96fd2b6f55b49bfcc2ce08e6edf57e5;p=libsigrok.git diff --git a/tests/lib.c b/tests/lib.c index faffc3a9..fa823c7a 100644 --- a/tests/lib.c +++ b/tests/lib.c @@ -213,14 +213,14 @@ void srtest_buf_to_file(const char *filename, const uint8_t *buf, uint64_t len) GArray *srtest_get_enabled_logic_probes(const struct sr_dev_inst *sdi) { - struct sr_probe *probe; + struct sr_channel *ch; GArray *probes; GSList *l; probes = g_array_new(FALSE, FALSE, sizeof(int)); for (l = sdi->probes; l; l = l->next) { probe = l->data; - if (probe->type != SR_PROBE_LOGIC) + if (probe->type != SR_CHANNEL_LOGIC) continue; if (probe->enabled != TRUE) continue;