fx2lafw: Fixed a compiler error, and made cv_data consistent with saleae-logic.c
This commit is contained in:
parent
0abee5076f
commit
c8f2c9dda4
|
@ -633,7 +633,7 @@ static int hw_dev_acquisition_start(int dev_index, void *cb_data)
|
||||||
gettimeofday(&header->starttime, NULL);
|
gettimeofday(&header->starttime, NULL);
|
||||||
header->samplerate = 24000000UL;
|
header->samplerate = 24000000UL;
|
||||||
header->num_logic_probes = ctx->profile->num_probes;
|
header->num_logic_probes = ctx->profile->num_probes;
|
||||||
sr_session_send(session_dev_id, packet);
|
sr_session_send(cb_data, packet);
|
||||||
g_free(header);
|
g_free(header);
|
||||||
g_free(packet);
|
g_free(packet);
|
||||||
|
|
||||||
|
@ -641,7 +641,7 @@ static int hw_dev_acquisition_start(int dev_index, void *cb_data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: This stops acquisition on ALL devices, ignoring dev_index. */
|
/* TODO: This stops acquisition on ALL devices, ignoring dev_index. */
|
||||||
static int hw_dev_acquisition_stop(int dev_index, void *session_dev_id)
|
static int hw_dev_acquisition_stop(int dev_index, void *cb_data)
|
||||||
{
|
{
|
||||||
struct sr_datafeed_packet packet;
|
struct sr_datafeed_packet packet;
|
||||||
|
|
||||||
|
@ -649,7 +649,7 @@ static int hw_dev_acquisition_stop(int dev_index, void *session_dev_id)
|
||||||
(void)dev_index;
|
(void)dev_index;
|
||||||
|
|
||||||
packet.type = SR_DF_END;
|
packet.type = SR_DF_END;
|
||||||
sr_session_send(session_dev_id, &packet);
|
sr_session_send(cb_data, &packet);
|
||||||
|
|
||||||
receive_transfer(NULL);
|
receive_transfer(NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue