X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Funi-t-ut32x%2Fapi.c;h=b38d2fb0d52a42c77f4bc486730c366750787d60;hb=a4e435eb49c1fa30c31d5851b404001324cafe33;hp=352853d8d34cf6efc71c69a70149b1b0eb68bff2;hpb=ba7dd8bbb8168cba432a844259a3e239aa5f36d7;p=libsigrok.git diff --git a/hardware/uni-t-ut32x/api.c b/hardware/uni-t-ut32x/api.c index 352853d8..b38d2fb0 100644 --- a/hardware/uni-t-ut32x/api.c +++ b/hardware/uni-t-ut32x/api.c @@ -86,7 +86,7 @@ static GSList *scan(GSList *options) sdi->inst_type = SR_INST_USB; sdi->conn = l->data; for (i = 0; i < 3; i++) { - if (!(ch = sr_probe_new(i, SR_PROBE_ANALOG, TRUE, + if (!(ch = sr_channel_new(i, SR_CHANNEL_ANALOG, TRUE, channels[i]))) { sr_dbg("Channel malloc failed."); return NULL;