]> sigrok.org Git - libsigrok.git/blobdiff - hardware/saleae-logic16/api.c
SWIG: Rename libsigrok.i to lowlevel.i.
[libsigrok.git] / hardware / saleae-logic16 / api.c
index dee3d25cfdd952b88620c30e641ed7c0777ee572..4cfdff12439e0674c260b2641ea77f41eb0f73fa 100644 (file)
@@ -641,9 +641,6 @@ static int configure_channels(const struct sr_dev_inst *sdi)
        struct sr_channel *ch;
        GSList *l;
        uint16_t channel_bit;
-#ifdef WORDS_BIGENDIAN
-       int i;
-#endif
 
        devc = sdi->priv;
 
@@ -670,16 +667,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;
 }
 
@@ -739,7 +726,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
        devc->cur_channel = 0;
        memset(devc->channel_data, 0, sizeof(devc->channel_data));
 
-       if ((trigger = sr_session_trigger_get())) {
+       if ((trigger = sr_session_trigger_get(sdi->session))) {
                devc->stl = soft_trigger_logic_new(sdi, trigger);
                devc->trigger_fired = FALSE;
        } else