]> sigrok.org Git - sigrok-cli.git/commitdiff
Always save all channels to a session file.
authorBert Vermeulen <redacted>
Sat, 13 Sep 2014 13:17:49 +0000 (15:17 +0200)
committerBert Vermeulen <redacted>
Sat, 13 Sep 2014 13:17:49 +0000 (15:17 +0200)
This works around limitations of the current API that screw up saving
only enabled channels. See bug 410.

session.c

index 131d46f1aa7e9508aacc744d2e89fbbcefdbcede..65cc2918d37adf0a95e0a49f0226479636e69806 100644 (file)
--- 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;
                                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;
                                                channels[i++] = ch->name;
                                }
                                channels[i] = NULL;