We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6daed37 commit e3f8643Copy full SHA for e3f8643
cores/arduino/USBCore.cpp
@@ -1030,13 +1030,13 @@ void USBCore_::transcOut(usb_dev* usbd, uint8_t ep)
1030
auto count = transc->xfer_count;
1031
USBCore().logEP(':', ep, '<', count);
1032
if (ep == 0) {
1033
- uint8_t buf[USBD_EP0_MAX_SIZE];
1034
- uint8_t count = usbd->drv_handler->ep_read(buf, 0U, EP_BUF_SNG);
1035
if (count != 0) {
1036
if (usbd->control.ctl_state == USBD_CTL_STATUS_OUT) {
+ uint8_t buf[USBD_EP0_MAX_SIZE];
+ uint8_t count = usbd->drv_handler->ep_read(buf, 0U, EP_BUF_SNG);
1037
USBCore().hexDump('!', buf, count);
1038
} else {
1039
- USBCore().hexDump('<', buf, count);
+ USBCore().hexDump('<', ctlBuf, count);
1040
}
1041
1042
this->oldTranscOut(usbd, ep);
0 commit comments