From: Bert Vermeulen Date: Thu, 12 Aug 2010 02:57:09 +0000 (+0200) Subject: don't push configuration to device until acq time X-Git-Tag: libsigrok-0.1.0~484 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a143e4e5ddb4743867b7578e0599a566c2c82c07;p=libsigrok.git don't push configuration to device until acq time --- diff --git a/hardware/zeroplus-logic-cube/zeroplus.c b/hardware/zeroplus-logic-cube/zeroplus.c index 5f6ededb..e12ed6f9 100644 --- a/hardware/zeroplus-logic-cube/zeroplus.c +++ b/hardware/zeroplus-logic-cube/zeroplus.c @@ -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);