X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Ffx2lafw%2Fprotocol.c;h=ad16da9524d7da3e2275e0fa9f7d128f3961dbf5;hb=9906dbf5a4f26e630b76e8f56e80d6b085b90446;hp=c496aa14f9885a28dec90e024b8baba48ec921b7;hpb=695dc859c15ba4190f5c1aa2e1a6e2dc6a6e5845;p=libsigrok.git diff --git a/src/hardware/fx2lafw/protocol.c b/src/hardware/fx2lafw/protocol.c index c496aa14..ad16da95 100644 --- a/src/hardware/fx2lafw/protocol.c +++ b/src/hardware/fx2lafw/protocol.c @@ -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 */