summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-06-16 00:53:06 +0700
committerhathach <[email protected]>2020-06-16 00:53:06 +0700
commit2b1c7730b719c6d4abd7d1bfbfdb80b0d64ee892 (patch)
treeba1cf2e3ce7cf5ccef8b84fbbd67ce6ab7bbfa99 /src/class
parent667eaa6dd693226d2595e2d19aa3f4798f0a4092 (diff)
fix hs port1 build with net endpoint
Diffstat (limited to 'src/class')
-rw-r--r--src/class/net/net_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/net/net_device.h b/src/class/net/net_device.h
index 67cd99933..964bc8a00 100644
--- a/src/class/net/net_device.h
+++ b/src/class/net/net_device.h
@@ -37,7 +37,7 @@
#include "netif/ethernet.h"
/* declared here, NOT in usb_descriptors.c, so that the driver can intelligently ZLP as needed */
-#define CFG_TUD_NET_ENDPOINT_SIZE ((CFG_TUSB_RHPORT0_MODE & OPT_MODE_HIGH_SPEED) ? 512 : 64)
+#define CFG_TUD_NET_ENDPOINT_SIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
/* Maximum Tranmission Unit (in bytes) of the network, including Ethernet header */
#define CFG_TUD_NET_MTU (1500 + SIZEOF_ETH_HDR)