]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Fix wide (16bit) sampling case.
authorUwe Hermann <redacted>
Wed, 29 Oct 2014 21:46:57 +0000 (22:46 +0100)
committerUwe Hermann <redacted>
Wed, 29 Oct 2014 21:46:57 +0000 (22:46 +0100)
This fixes bug #373.

src/hardware/fx2lafw/api.c

index 522a94bf31b151213267316f2945dec6ed9ec044..a4a679a4e32159a5e71ed8bb8921b0d37820a663 100644 (file)
@@ -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);