Set DSLogic in logic analyzer mode.

It was being initialized in DSO mode.

Signed-off-by: Diego F. Asanza <f.asanza@gmail.com>
This commit is contained in:
Diego F. Asanza 2016-03-31 22:16:12 +02:00 committed by Uwe Hermann
parent 3f0ff41284
commit 62974b235a
2 changed files with 2 additions and 1 deletions

View 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;

View 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,