]> sigrok.org Git - sigrok-cli.git/blobdiff - main.c
decode: start collecting internal state (samplerate)
[sigrok-cli.git] / main.c
diff --git a/main.c b/main.c
index 8e4ac3a6a5891879c8aec9c946c82b5121b60753..c2f39d84ff601fec51236cf261f723016bd2e552 100644 (file)
--- a/main.c
+++ b/main.c
@@ -242,6 +242,8 @@ int main(int argc, char **argv)
                if (opt_pd_binary) {
                        if (setup_pd_binary(opt_pd_binary) != 0)
                                goto done;
+                       if (setup_binary_stdout() != 0)
+                               goto done;
                        if (srd_pd_output_callback_add(srd_sess, SRD_OUTPUT_BINARY,
                                        show_pd_binary, NULL) != SRD_OK)
                                goto done;
@@ -292,6 +294,8 @@ int main(int argc, char **argv)
                set_options();
        else if (opt_samples || opt_time || opt_frames || opt_continuous)
                run_session();
+       else if (opt_list_serial)
+               show_serial_ports();
        else
                show_help();