diff options
| author | Ha Thach <[email protected]> | 2022-06-17 15:11:55 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-17 15:11:55 +0700 |
| commit | e0d7c16788f15c72c5a7837656d8b6d3ed28c3e0 (patch) | |
| tree | 9c7c0bdd4b68fb10674d2aa6befdbe83830a4760 /src | |
| parent | 80121303eb80a1847ad314cb87774e6e390754c6 (diff) | |
| parent | 905a0b24576deab6a2b4214b1428c87e4cd703a5 (diff) | |
Merge pull request #1516 from hathach/fix-example-with-highspeed
correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc exmaples
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/usbtmc/usbtmc_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/usbtmc/usbtmc_device.h b/src/class/usbtmc/usbtmc_device.h index 0549a1569..5dc4d2dff 100644 --- a/src/class/usbtmc/usbtmc_device.h +++ b/src/class/usbtmc/usbtmc_device.h @@ -37,7 +37,7 @@ // USB spec says that full-speed must be 8,16,32, or 64. // However, this driver implementation requires it to be >=32 -#define USBTMCD_MAX_PACKET_SIZE (64u) +#define USBTMCD_MAX_PACKET_SIZE (TUD_OPT_HIGH_SPEED ? 512 : 64) /*********************************************** * Functions to be implemeted by the class implementation |
