From: Uwe Hermann Date: Wed, 29 Oct 2014 21:46:57 +0000 (+0100) Subject: fx2lafw: Fix wide (16bit) sampling case. X-Git-Tag: libsigrok-0.4.0~815 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=aab4b8cb70e08369760383d9b9302085db298a44;p=libsigrok.git fx2lafw: Fix wide (16bit) sampling case. This fixes bug #373. --- diff --git a/src/hardware/fx2lafw/api.c b/src/hardware/fx2lafw/api.c index 522a94bf..a4a679a4 100644 --- a/src/hardware/fx2lafw/api.c +++ b/src/hardware/fx2lafw/api.c @@ -257,6 +257,7 @@ static GSList *scan(GSList *options) devc = fx2lafw_dev_new(); devc->profile = prof; + devc->sample_wide = (prof->dev_caps & DEV_CAPS_16BIT) != 0; sdi->priv = devc; drvc->instances = g_slist_append(drvc->instances, sdi); devices = g_slist_append(devices, sdi);