]> sigrok.org Git - libsigrok.git/commitdiff
srd: Pass samplerate to decoder in metadata.
authorGareth McMullin <redacted>
Mon, 28 Nov 2011 08:52:35 +0000 (21:52 +1300)
committerGareth McMullin <redacted>
Mon, 28 Nov 2011 08:52:35 +0000 (21:52 +1300)
session_driver.c

index 2782186128124e03866645d2eb9a2d42da5ff1ee..fd5b11fc55cab186aa6e6d3ccd034811e2e4c965 100644 (file)
@@ -282,7 +282,7 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
        packet->payload = (unsigned char *)header;
        header->feed_version = 1;
        gettimeofday(&header->starttime, NULL);
-       header->samplerate = 0;
+       header->samplerate = vdevice->samplerate;
        header->num_logic_probes = vdevice->num_probes;
        header->num_analog_probes = 0;
        sr_session_bus(session_device_id, packet);