From: Bert Vermeulen Date: Sat, 13 Sep 2014 13:17:49 +0000 (+0200) Subject: Always save all channels to a session file. X-Git-Tag: sigrok-cli-0.6.0~66 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4c6a77987e2bbda7c4e9c6f3568ccb7b65226d6c;p=sigrok-cli.git Always save all channels to a session file. This works around limitations of the current API that screw up saving only enabled channels. See bug 410. --- diff --git a/session.c b/session.c index 131d46f..65cc291 100644 --- a/session.c +++ b/session.c @@ -249,7 +249,7 @@ void datafeed_in(const struct sr_dev_inst *sdi, channels = g_malloc(sizeof(char *) * g_slist_length(sdi->channels)); for (i = 0, l = sdi->channels; l; l = l->next) { ch = l->data; - if (ch->enabled && ch->type == SR_CHANNEL_LOGIC) + if (ch->type == SR_CHANNEL_LOGIC) channels[i++] = ch->name; } channels[i] = NULL;