]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/fx2lafw/protocol.c
srzip: Fix handling of analog channels with index 0
[libsigrok.git] / src / hardware / fx2lafw / protocol.c
index c496aa14f9885a28dec90e024b8baba48ec921b7..ad16da9524d7da3e2275e0fa9f7d128f3961dbf5 100644 (file)
@@ -332,7 +332,6 @@ static void finish_acquisition(struct sr_dev_inst *sdi)
 
        std_session_send_df_end(sdi, LOG_PREFIX);
 
-       /* Remove fds from polling. */
        usb_source_remove(sdi->session, devc->ctx);
 
        devc->num_transfers = 0;
@@ -391,9 +390,10 @@ SR_PRIV void mso_send_data_proc(struct sr_dev_inst *sdi,
        size_t i;
        struct dev_context *devc;
 
+       (void)sample_width;
+
        devc = sdi->priv;
 
-       sample_width = sample_width;
        length /= 2;
 
        /* Send the logic */