don't push configuration to device until acq time

This commit is contained in:
Bert Vermeulen 2010-08-12 04:57:09 +02:00
parent f0d1b53e56
commit a143e4e5dd
1 changed files with 3 additions and 1 deletions

View File

@ -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);