]> sigrok.org Git - libsigrok.git/commitdiff
No need to send a metapacket when loading a sigrok file.
authorBert Vermeulen <redacted>
Sun, 20 Jan 2013 15:38:28 +0000 (16:38 +0100)
committerBert Vermeulen <redacted>
Mon, 21 Jan 2013 22:32:49 +0000 (23:32 +0100)
session_driver.c

index 011b731201943665f4e2d459230a9a2ccdaa6aad..8a5b08ce274ab5b5f3e9855aeb4d6dfd54b11ad5 100644 (file)
@@ -216,7 +216,6 @@ static int hw_dev_acquisition_start(const struct sr_dev_inst *sdi,
        struct session_vdev *vdev;
        struct sr_datafeed_header *header;
        struct sr_datafeed_packet *packet;
-       struct sr_datafeed_meta_logic meta;
        int ret;
 
        vdev = sdi->priv;
@@ -262,13 +261,6 @@ static int hw_dev_acquisition_start(const struct sr_dev_inst *sdi,
        gettimeofday(&header->starttime, NULL);
        sr_session_send(cb_data, packet);
 
-       /* Send metadata about the SR_DF_LOGIC packets to come. */
-       packet->type = SR_DF_META_LOGIC;
-       packet->payload = &meta;
-       meta.samplerate = vdev->samplerate;
-       meta.num_probes = vdev->num_probes;
-       sr_session_send(cb_data, packet);
-
        g_free(header);
        g_free(packet);