Commit 095eba19 authored by Timo Rothenpieler's avatar Timo Rothenpieler Committed by Uwe Hermann

hantek-6xxx: use lower MAX_PACKET_SIZE on Windows

WinUSB seems to have a maximum size of 2M, reads of a larger size fail.

This fixes bug #1048.
parent 79100d4e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment