]> sigrok.org Git - libsigrok.git/blobdiff - hardware/saleae-logic16/api.c
saleae-logic16: Fix acquisition with fewer than nine channels enabled.
[libsigrok.git] / hardware / saleae-logic16 / api.c
index dee3d25cfdd952b88620c30e641ed7c0777ee572..8b2db4b49e065b9845e976559d735f70812d034d 100644 (file)
@@ -670,16 +670,6 @@ static int configure_channels(const struct sr_dev_inst *sdi)
                devc->channel_masks[devc->num_channels++] = channel_bit;
        }
 
-       if (devc->cur_channels & ~0xff) {
-               devc->unitsize = 2;
-       } else {
-#ifdef WORDS_BIGENDIAN
-               for (i = 0; i < devc->num_channels; i++)
-                       devc->channel_masks[i] >>= 8;
-#endif
-               devc->unitsize = 1;
-       }
-
        return SR_OK;
 }