X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Flecroy-xstream%2Fapi.c;h=504dde3bd469b5c3d0e43cf25de8db7c6bf6a3bc;hp=8d4fe0b291eb775189535e9f8124083146d295cd;hb=6e9606dbae378c5f37d7be3fe3aa4b06c5d142ed;hpb=095eba19d6ddda139f01eeb36e81f06bd2d91748 diff --git a/src/hardware/lecroy-xstream/api.c b/src/hardware/lecroy-xstream/api.c index 8d4fe0b2..504dde3b 100644 --- a/src/hardware/lecroy-xstream/api.c +++ b/src/hardware/lecroy-xstream/api.c @@ -431,27 +431,19 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) g_slist_free(devc->enabled_channels); devc->enabled_channels = NULL; - /* - * Contruct the list of enabled channels. Determine the highest - * number of digital pods involved in the acquisition. - */ - + /* Contruct the list of enabled channels. */ for (l = sdi->channels; l; l = l->next) { ch = l->data; if (!ch->enabled) continue; - /* Only add a single digital channel per group (pod). */ - devc->enabled_channels = g_slist_append( - devc->enabled_channels, ch); + + devc->enabled_channels = g_slist_append(devc->enabled_channels, ch); } if (!devc->enabled_channels) return SR_ERR; - /* - * Configure the analog channels and the - * corresponding digital pods. - */ + /* Configure the analog channels. */ if (setup_channels(sdi) != SR_OK) { sr_err("Failed to setup channel configuration!"); ret = SR_ERR;