Fix saving to session file.
[sigrok-cli.git] / input.c
diff --git a/input.c b/input.c
index b293ddd908c6bc341c30e19d4fb8bdc3f61dfb7f..566fd1d55dcf6b2f838f3de8b2f19b3db0245d46 100644 (file)
--- a/input.c
+++ b/input.c
@@ -27,7 +27,7 @@
 
 extern gchar *opt_input_file;
 extern gchar *opt_input_format;
-extern gchar *opt_probes;
+extern gchar *opt_channels;
 
 
 /**
@@ -131,7 +131,7 @@ static void load_input_file_format(void)
                }
        }
 
-       if (select_probes(in->sdi) > 0)
+       if (select_channels(in->sdi) != SR_OK)
                return;
 
        sr_session_new();
@@ -165,7 +165,7 @@ void load_input_file(void)
                        return;
                }
                sdi = sessions->data;
-               if (select_probes(sdi) != SR_OK) {
+               if (select_channels(sdi) != SR_OK) {
                        sr_session_destroy();
                        return;
                }