From: Gareth McMullin Date: Mon, 28 Nov 2011 08:52:35 +0000 (+1300) Subject: srd: Pass samplerate to decoder in metadata. X-Git-Tag: libsigrok-0.1.0~220 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=276585ff209d02ea058f09820881ed536e48e3bb;p=libsigrok.git srd: Pass samplerate to decoder in metadata. --- diff --git a/session_driver.c b/session_driver.c index 27821861..fd5b11fc 100644 --- a/session_driver.c +++ b/session_driver.c @@ -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);