X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Funi-t-ut32x%2Fapi.c;h=352853d8d34cf6efc71c69a70149b1b0eb68bff2;hb=ba7dd8bbb8168cba432a844259a3e239aa5f36d7;hp=67fecd327ac740ff9d485ad4210a7a8732e55579;hpb=91aea754aaed0f0f2a6fc4b2b875f0d0b7c01f8e;p=libsigrok.git diff --git a/hardware/uni-t-ut32x/api.c b/hardware/uni-t-ut32x/api.c index 67fecd32..352853d8 100644 --- a/hardware/uni-t-ut32x/api.c +++ b/hardware/uni-t-ut32x/api.c @@ -28,7 +28,7 @@ static const int32_t hwcaps[] = { SR_CONF_DATA_SOURCE, }; -static char *probes[] = { +static char *channels[] = { "T1", "T2", "T1-T2", @@ -53,7 +53,7 @@ static GSList *scan(GSList *options) struct drv_context *drvc; struct dev_context *devc; struct sr_dev_inst *sdi; - struct sr_channel *probe; + struct sr_channel *ch; struct sr_config *src; GSList *usb_devices, *devices, *l; int i; @@ -86,12 +86,12 @@ static GSList *scan(GSList *options) sdi->inst_type = SR_INST_USB; sdi->conn = l->data; for (i = 0; i < 3; i++) { - if (!(probe = sr_probe_new(i, SR_PROBE_ANALOG, TRUE, - probes[i]))) { - sr_dbg("Probe malloc failed."); + if (!(ch = sr_probe_new(i, SR_PROBE_ANALOG, TRUE, + channels[i]))) { + sr_dbg("Channel malloc failed."); return NULL; } - sdi->probes = g_slist_append(sdi->probes, probe); + sdi->channels = g_slist_append(sdi->channels, ch); } if (!(devc = g_try_malloc(sizeof(struct dev_context)))) {