summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-10-31 21:14:06 +0700
committerhathach <[email protected]>2019-10-31 21:14:06 +0700
commitcacbb80a9031662074c12652cbec32b491d78507 (patch)
treee6f8f575794e92b9b871dc064299c9e406f88ba5 /test
parent6067adcd08df5eabcfb99cd62611835dc1738c90 (diff)
zlp should work with control in, tested with Unity framework
Diffstat (limited to 'test')
-rw-r--r--test/test/device/usbd/test_usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test/device/usbd/test_usbd.c b/test/test/device/usbd/test_usbd.c
index ea813ea43..71d15dbca 100644
--- a/test/test/device/usbd/test_usbd.c
+++ b/test/test/device/usbd/test_usbd.c
@@ -202,7 +202,7 @@ void test_usbd_control_zlp(void)
{
// 128 byte total len, with EP0 size = 64, and request length = 256
// ZLP must be return
- uint8_t zlp_desc_configuration[] =
+ uint8_t zlp_desc_configuration[CFG_TUD_ENDOINT0_SIZE*2] =
{
// Interface count, string index, total length, attribute, power in mA
TUD_CONFIG_DESCRIPTOR(0, 0, CFG_TUD_ENDOINT0_SIZE*2, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),