From 364b09c2a936fd7e98a879c3532fcd2fee4c1e0a Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 16 May 2017 22:23:24 +0200 Subject: [PATCH] hantek-6xxx: Fix coupling selection. Due to an uninitialized variable, switching to/from AC/DC coupling (on models that support this) was not working. This fixes bug #836. --- src/hardware/hantek-6xxx/api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hardware/hantek-6xxx/api.c b/src/hardware/hantek-6xxx/api.c index fb755f1c..c05290be 100644 --- a/src/hardware/hantek-6xxx/api.c +++ b/src/hardware/hantek-6xxx/api.c @@ -120,6 +120,7 @@ static struct sr_dev_inst *hantek_6xxx_dev_new(const struct hantek_6xxx_profile } devc->coupling_vals = prof->coupling_vals; devc->coupling_tab_size = prof->coupling_tab_size; + devc->has_coupling = prof->has_coupling; devc->sample_buf = NULL; devc->sample_buf_write = 0;