X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fchronovu-la8%2Fchronovu-la8.c;h=ee112ed05fbb7527616f2532b6f489fb04c9793a;hb=f366e86c68071fa7888259aa3963b213caa81b51;hp=06de6340090be57b57b17ba5adbc80d9e10c8329;hpb=ee7489d23449a3f5a81777fbdb3309dfe22bcecd;p=libsigrok.git diff --git a/hardware/chronovu-la8/chronovu-la8.c b/hardware/chronovu-la8/chronovu-la8.c index 06de6340..ee112ed0 100644 --- a/hardware/chronovu-la8/chronovu-la8.c +++ b/hardware/chronovu-la8/chronovu-la8.c @@ -1016,6 +1016,7 @@ static int hw_dev_acquisition_start(int dev_index, void *cb_data) struct context *ctx; struct sr_datafeed_packet packet; struct sr_datafeed_header header; + struct sr_datafeed_meta_logic meta; uint8_t buf[4]; int bytes_written; @@ -1069,8 +1070,13 @@ static int hw_dev_acquisition_start(int dev_index, void *cb_data) packet.payload = &header; header.feed_version = 1; gettimeofday(&header.starttime, NULL); - header.samplerate = ctx->cur_samplerate; - header.num_logic_probes = NUM_PROBES; + sr_session_send(ctx->session_dev_id, &packet); + + /* Send metadata about the SR_DF_LOGIC packets to come. */ + packet.type = SR_DF_META_LOGIC; + packet.payload = &meta; + meta.samplerate = ctx->cur_samplerate; + meta.num_probes = NUM_PROBES; sr_session_send(ctx->session_dev_id, &packet); /* Time when we should be done (for detecting trigger timeouts). */