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:
Timo Rothenpieler 2017-10-11 15:08:50 +02:00 committed by Uwe Hermann
parent 79100d4e8b
commit 095eba19d6
1 changed files with 4 additions and 0 deletions

View File

@ -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