]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
fx2lafw: Compile fix.
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index cc353a80f06d378a9df217df7c94d27a5534fb9b..e99a62683c72b31ccadfcf9c51da9fca1c280511 100644 (file)
@@ -298,7 +298,7 @@ static int hw_init(const char *deviceinfo)
                ctx = fx2lafw_device_new();
                ctx->profile = fx2lafw_prof;
                sdi->priv = ctx;
-               device_instances = g_slist_append(dev_insts, sdi);
+               dev_insts = g_slist_append(dev_insts, sdi);
 
                if (check_conf_profile(devlist[i])) {
                        /* Already has the firmware, so fix the new address. */
@@ -645,8 +645,18 @@ static int hw_dev_acquisition_start(int dev_index, gpointer session_data)
 /* This stops acquisition on ALL devices, ignoring device_index. */
 static int hw_dev_acquisition_stop(int dev_index, gpointer session_data)
 {
+       struct sr_datafeed_packet packet;
+
+       /* Avoid compiler warnings. */
        (void)dev_index;
-       (void)session_data;
+
+       packet.type = SR_DF_END;
+       sr_session_bus(session_data, &packet);
+
+       receive_transfer(NULL);
+
+       /* TODO: Need to cancel and free any queued up transfers. */
+
        return SR_OK;
 }