X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=hardware%2Flink-mso19%2Fapi.c;h=45453efdf3f49571dce0545643d2734d9ba3f724;hb=38d32464973b828bf327b9271ef4b0437d85c9f2;hp=384b52c4660f126722b6484f4ad499248957bed3;hpb=3f239f0803b9fbc073dd7abe9fc7b2a0c606fbb6;p=libsigrok.git diff --git a/hardware/link-mso19/api.c b/hardware/link-mso19/api.c index 384b52c4..45453efd 100644 --- a/hardware/link-mso19/api.c +++ b/hardware/link-mso19/api.c @@ -25,6 +25,7 @@ static const int32_t hwcaps[] = { SR_CONF_OSCILLOSCOPE, SR_CONF_LOGIC_ANALYZER, SR_CONF_SAMPLERATE, + SR_CONF_TRIGGER_TYPE, SR_CONF_TRIGGER_SLOPE, SR_CONF_HORIZ_TRIGGERPOS, // SR_CONF_CAPTURE_RATIO, @@ -101,7 +102,7 @@ static GSList *scan(GSList *options) GSList *l; struct sr_config *src; struct udev *udev; - int ptype; + int chtype; for (l = options; l; l = l->next) { src = l->data; @@ -218,8 +219,8 @@ static GSList *scan(GSList *options) for (i = 0; i < NUM_CHANNELS; i++) { struct sr_channel *ch; - ptype = (i == 0) ? SR_CHANNEL_ANALOG : SR_CHANNEL_LOGIC; - if (!(ch = sr_channel_new(i, ptype, TRUE, + chtype = (i == 0) ? SR_CHANNEL_ANALOG : SR_CHANNEL_LOGIC; + if (!(ch = sr_channel_new(i, chtype, TRUE, mso19_channel_names[i]))) return 0; sdi->channels = g_slist_append(sdi->channels, ch);