]> sigrok.org Git - sigrok-cli.git/commitdiff
CLI: properly feed SRD a sample number with every chunk of data.
authorBert Vermeulen <redacted>
Sun, 15 Jan 2012 22:23:25 +0000 (23:23 +0100)
committerBert Vermeulen <redacted>
Sun, 15 Jan 2012 22:25:58 +0000 (23:25 +0100)
sigrok-cli.c

index ce504b743a0a70f8f6e9ae230ad55c70c9c304c1..73f0a13f8f575ef0ffd52fd1fb0ea7a6a5d28ca4 100644 (file)
@@ -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;