diff options
| -rw-r--r-- | demo/cmsis-dap_v2.1_tempate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/cmsis-dap_v2.1_tempate.c b/demo/cmsis-dap_v2.1_tempate.c index 627efb8d..4e7c9ea7 100644 --- a/demo/cmsis-dap_v2.1_tempate.c +++ b/demo/cmsis-dap_v2.1_tempate.c @@ -227,7 +227,7 @@ void usb_dap_recv_callback(uint8_t ep, uint32_t nbytes) } actual_len = DAP_ProcessCommand(USB_Request, USB_Response); - usbd_ep_start_write(DAP_IN_EP, USB_Response, actual_len); + usbd_ep_start_write(DAP_IN_EP, USB_Response, actual_len & 0xffff); usbd_ep_start_read(ep, USB_Request, DAP_PACKET_SIZE); } @@ -281,4 +281,4 @@ void daplink_init(void) usbd_add_endpoint(&cdc_in_ep); usbd_initialize(); -}
\ No newline at end of file +} |
