]> sigrok.org Git - sigrok-cli.git/blobdiff - main.c
decode: add support for Google Trace Event output (JSON)
[sigrok-cli.git] / main.c
diff --git a/main.c b/main.c
index c2f39d84ff601fec51236cf261f723016bd2e552..aa4f1229888fa91f961cce2d88dd32e1cd93c997 100644 (file)
--- a/main.c
+++ b/main.c
@@ -261,6 +261,7 @@ int main(int argc, char **argv)
                                        show_pd_annotations, NULL) != SRD_OK)
                                goto done;
                }
+               show_pd_prepare();
        }
 #endif
 
@@ -300,6 +301,8 @@ int main(int argc, char **argv)
                show_help();
 
 #ifdef HAVE_SRD
+       if (opt_pds)
+               show_pd_close();
        if (opt_pds)
                srd_exit();
 #endif