]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Implemented hw_dev_acquisition_stop
authorJoel Holdsworth <redacted>
Mon, 27 Feb 2012 19:34:24 +0000 (19:34 +0000)
committerJoel Holdsworth <redacted>
Mon, 27 Feb 2012 21:58:25 +0000 (21:58 +0000)
hardware/fx2lafw/fx2lafw.c

index cc353a80f06d378a9df217df7c94d27a5534fb9b..bd4eebad6a2868f7b6c6e5fcd7e0454f444514bb 100644 (file)
@@ -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;
 }