]> sigrok.org Git - libsigrok.git/commitdiff
don't push configuration to device until acq time
authorBert Vermeulen <redacted>
Thu, 12 Aug 2010 02:57:09 +0000 (04:57 +0200)
committerBert Vermeulen <redacted>
Thu, 12 Aug 2010 02:57:09 +0000 (04:57 +0200)
hardware/zeroplus-logic-cube/zeroplus.c

index 5f6ededb1c0192f89b138d2261f4ac94b90baa38..e12ed6f98a81eb1f924f60854f323240a7a55e9f 100644 (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);