WinUSB seems to have a maximum size of 2M, reads of a larger size fail.
---
 src/hardware/hantek-6xxx/protocol.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/hardware/hantek-6xxx/protocol.h 
b/src/hardware/hantek-6xxx/protocol.h
index 73d8f868..a106fb4b 100644
--- a/src/hardware/hantek-6xxx/protocol.h
+++ b/src/hardware/hantek-6xxx/protocol.h
@@ -60,7 +60,11 @@
 #define FLUSH_PACKET_SIZE      1024
 
 #define MIN_PACKET_SIZE                512
+#ifdef _WIN32
+#define MAX_PACKET_SIZE                (2 * 1024 * 1024)
+#else
 #define MAX_PACKET_SIZE                (12 * 1024 * 1024)
+#endif
 
 #define HANTEK_EP_IN           0x86
 #define USB_INTERFACE          0
-- 
2.14.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to