From: Bert Vermeulen Date: Sun, 15 Jan 2012 22:23:25 +0000 (+0100) Subject: CLI: properly feed SRD a sample number with every chunk of data. X-Git-Tag: sigrok-cli-0.3.0~66 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=838285aa2e112b526f944b81070d5525de9b634a;p=sigrok-cli.git CLI: properly feed SRD a sample number with every chunk of data. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index ce504b7..73f0a13 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -444,8 +444,8 @@ static void datafeed_in(struct sr_device *device, struct sr_datafeed_packet *pac goto cleanup; if (opt_pds) { - if (srd_session_feed(packet->timeoffset, packet->duration, - (uint8_t*)filter_out, filter_out_len) != SRD_OK) + if (srd_session_feed(received_samples, (uint8_t*)filter_out, + filter_out_len) != SRD_OK) abort(); } else { output_len = 0;