X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=session.c;h=598ef003dfb9a39c2e0de0d257553f562f0d3fd7;hp=d1937f82af08efb512f7c0f242480848ee6c6f5e;hb=f4ffd032cfb0b8fe927d82bdba136f357b8dad79;hpb=6709a6946448e9178100e751803c0c5b58e3a396;ds=sidebyside diff --git a/session.c b/session.c index d1937f8..598ef00 100644 --- 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);