From 4c6a77987e2bbda7c4e9c6f3568ccb7b65226d6c Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sat, 13 Sep 2014 15:17:49 +0200 Subject: [PATCH] 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. --- session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2