X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fasix-sigma%2Fasix-sigma.c;h=918a0e158307a47b785c3f0372751b1fd3dd15e3;hb=87ca93c5043899e3c30edb7e09fadef3ee67d810;hp=5cb6130c29ae8723bbbab76ae310228848314a6b;hpb=b35c829306b86dbeeeecf14de7fe30a05a88c914;p=libsigrok.git diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 5cb6130c..918a0e15 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -443,12 +443,13 @@ static int hw_init(void) static GSList *hw_scan(GSList *options) { struct sr_dev_inst *sdi; + struct sr_probe *probe; struct context *ctx; GSList *devices; struct ftdi_device_list *devlist; char serial_txt[10]; uint32_t serial; - int ret; + int ret, i; (void)options; devices = NULL; @@ -499,6 +500,14 @@ static GSList *hw_scan(GSList *options) goto free; } sdi->driver = adi; + + for (i = 0; probe_names[i]; i++) { + if (!(probe = sr_probe_new(i, SR_PROBE_ANALOG, TRUE, + probe_names[i]))) + return NULL; + sdi->probes = g_slist_append(sdi->probes, probe); + } + devices = g_slist_append(devices, sdi); adi->instances = g_slist_append(adi->instances, sdi); sdi->priv = ctx;