update plugins and cli to use new DF_HEADER
This commit is contained in:
parent
921e753f7e
commit
c2616fb9fa
|
@ -1219,7 +1219,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
|
|||
gettimeofday(&header.starttime, NULL);
|
||||
header.samplerate = cur_samplerate;
|
||||
header.protocol_id = PROTO_RAW;
|
||||
header.num_probes = num_probes;
|
||||
header.num_logic_probes = num_probes;
|
||||
header.num_analog_probes = 0;
|
||||
session_bus(session_device_id, &packet);
|
||||
|
||||
/* Add capture source. */
|
||||
|
|
|
@ -318,7 +318,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
|
|||
gettimeofday(&header->starttime, NULL);
|
||||
header->samplerate = cur_samplerate;
|
||||
header->protocol_id = PROTO_RAW;
|
||||
header->num_probes = NUM_PROBES;
|
||||
header->num_logic_probes = NUM_PROBES;
|
||||
header->num_analog_probes = 0;
|
||||
session_bus(session_device_id, packet);
|
||||
free(header);
|
||||
free(packet);
|
||||
|
|
|
@ -760,7 +760,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
|
|||
gettimeofday(&header->starttime, NULL);
|
||||
header->samplerate = cur_samplerate;
|
||||
header->protocol_id = PROTO_RAW;
|
||||
header->num_probes = NUM_PROBES;
|
||||
header->num_logic_probes = NUM_PROBES;
|
||||
header->num_analog_probes = 0;
|
||||
session_bus(session_device_id, packet);
|
||||
g_free(header);
|
||||
g_free(packet);
|
||||
|
|
|
@ -713,7 +713,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
|
|||
gettimeofday(&header->starttime, NULL);
|
||||
header->samplerate = cur_samplerate;
|
||||
header->protocol_id = PROTO_RAW;
|
||||
header->num_probes = NUM_PROBES;
|
||||
header->num_logic_probes = NUM_PROBES;
|
||||
header->num_analog_probes = 0;
|
||||
session_bus(session_device_id, packet);
|
||||
g_free(header);
|
||||
g_free(packet);
|
||||
|
|
|
@ -512,7 +512,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
|
|||
gettimeofday(&header.starttime, NULL);
|
||||
header.samplerate = cur_samplerate;
|
||||
header.protocol_id = PROTO_RAW;
|
||||
header.num_probes = num_channels;
|
||||
header.num_logic_probes = num_channels;
|
||||
header.num_analog_probes = 0;
|
||||
session_bus(session_device_id, &packet);
|
||||
|
||||
buf = g_malloc(PACKET_SIZE);
|
||||
|
|
|
@ -48,7 +48,8 @@ static int in_loadfile(const char *filename)
|
|||
device = device_new(NULL, 0, num_probes);
|
||||
|
||||
header.feed_version = 1;
|
||||
header.num_probes = num_probes;
|
||||
header.num_logic_probes = num_probes;
|
||||
header.num_analog_probes = 0; /* FIXME */
|
||||
header.protocol_id = PROTO_RAW;
|
||||
header.samplerate = 0;
|
||||
gettimeofday(&header.starttime, NULL);
|
||||
|
|
Loading…
Reference in New Issue