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.
This commit is contained in:
parent
79100d4e8b
commit
095eba19d6
|
@ -60,7 +60,11 @@
|
||||||
#define FLUSH_PACKET_SIZE 1024
|
#define FLUSH_PACKET_SIZE 1024
|
||||||
|
|
||||||
#define MIN_PACKET_SIZE 512
|
#define MIN_PACKET_SIZE 512
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define MAX_PACKET_SIZE (2 * 1024 * 1024)
|
||||||
|
#else
|
||||||
#define MAX_PACKET_SIZE (12 * 1024 * 1024)
|
#define MAX_PACKET_SIZE (12 * 1024 * 1024)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define HANTEK_EP_IN 0x86
|
#define HANTEK_EP_IN 0x86
|
||||||
#define USB_INTERFACE 0
|
#define USB_INTERFACE 0
|
||||||
|
|
Loading…
Reference in New Issue