]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hantek-6xxx/protocol.h
Introduce standard cleanup helper
[libsigrok.git] / src / hardware / hantek-6xxx / protocol.h
index 6e87079c82efcdcccd598f58dd5fa035ed8dca28..530bd67dcc068b034b957944e34da407e9480b48 100644 (file)
@@ -57,9 +57,9 @@
 #define VDIV_MULTIPLIER                10
 
 /* Weird flushing needed for filtering glitch away. */
-#define FLUSH_PACKET_SIZE      2600
+#define FLUSH_PACKET_SIZE      1024
 
-#define MIN_PACKET_SIZE                600
+#define MIN_PACKET_SIZE                512
 #define MAX_PACKET_SIZE                (12 * 1024 * 1024)
 
 #define HANTEK_EP_IN           0x86
@@ -101,7 +101,6 @@ struct hantek_6xxx_profile {
 
 struct dev_context {
        const struct hantek_6xxx_profile *profile;
-       void *cb_data;
        GSList *enabled_channels;
        /*
         * We can't keep track of an FX2-based device after upgrading