]> sigrok.org Git - libsigrok.git/commitdiff
Set DSLogic in logic analyzer mode.
authorDiego F. Asanza <redacted>
Thu, 31 Mar 2016 20:16:12 +0000 (22:16 +0200)
committerUwe Hermann <redacted>
Wed, 13 Apr 2016 07:35:03 +0000 (09:35 +0200)
It was being initialized in DSO mode.

Signed-off-by: Diego F. Asanza <redacted>
src/hardware/fx2lafw/dslogic.c
src/hardware/fx2lafw/dslogic.h

index 2f0ffa32335373e91e6d6fee1dcd89e8f955b3ac..d3cce4d074056ec2041111f45af13db62f77c237 100644 (file)
@@ -117,7 +117,7 @@ SR_PRIV int dslogic_start_acquisition(const struct sr_dev_inst *sdi)
        int ret;
 
        devc = sdi->priv;
-       mode.flags = 0;
+       mode.flags = DS_START_FLAGS_MODE_LA;
        mode.sample_delay_h = mode.sample_delay_l = 0;
        if (devc->sample_wide)
                mode.flags |= DS_START_FLAGS_SAMPLE_WIDE;
index 411e8331be8e84df8684b9d2171d3456ede6acb5..0a83bbd805af00bbfd68579087890cb7cc1dc132 100644 (file)
@@ -32,6 +32,7 @@
 #define DS_START_FLAGS_STOP            (1 << 7)
 #define DS_START_FLAGS_CLK_48MHZ       (1 << 6)
 #define DS_START_FLAGS_SAMPLE_WIDE     (1 << 5)
+#define DS_START_FLAGS_MODE_LA         (1 << 4)
 
 enum dslogic_operation_modes {
        DS_OP_NORMAL,