]> sigrok.org Git - sigrok-cli.git/blobdiff - session.c
Fix saving to session file.
[sigrok-cli.git] / session.c
index d1937f82af08efb512f7c0f242480848ee6c6f5e..598ef003dfb9a39c2e0de0d257553f562f0d3fd7 100644 (file)
--- a/session.c
+++ b/session.c
@@ -300,7 +300,7 @@ void datafeed_in(const struct sr_dev_inst *sdi,
                break;
        }
 
-       if (o) {
+       if (o && outfile && !opt_pds) {
                if (sr_output_send(o, packet, &out) == SR_OK && out) {
                        fwrite(out->str, 1, out->len, outfile);
                        fflush(outfile);