From: Uwe Hermann Date: Tue, 16 May 2017 20:23:24 +0000 (+0200) Subject: hantek-6xxx: Fix coupling selection. X-Git-Tag: libsigrok-0.5.0~64 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=364b09c2a936fd7e98a879c3532fcd2fee4c1e0a;p=libsigrok.git 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. --- 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;