don't push configuration to device until acq time
This commit is contained in:
parent
f0d1b53e56
commit
a143e4e5dd
|
@ -340,7 +340,6 @@ static int hw_opendev(int device_index)
|
|||
}
|
||||
analyzer_reset(sdi->usb->devhdl);
|
||||
analyzer_initialize(sdi->usb->devhdl);
|
||||
analyzer_configure(sdi->usb->devhdl);
|
||||
|
||||
analyzer_set_memory_size(MEMORY_SIZE_512K);
|
||||
// analyzer_set_freq(g_freq, g_freq_scale);
|
||||
|
@ -492,6 +491,9 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
|
|||
if (!(sdi = get_sigrok_device_instance(device_instances, device_index)))
|
||||
return SIGROK_ERR;
|
||||
|
||||
/* push configured settings to device */
|
||||
analyzer_configure(sdi->usb->devhdl);
|
||||
|
||||
analyzer_start(sdi->usb->devhdl);
|
||||
g_message("Waiting for data");
|
||||
analyzer_wait_data(sdi->usb->devhdl);
|
||||
|
|
Loading…
Reference in New Issue