We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b3ada1 commit f373c69Copy full SHA for f373c69
board/drivers/usb.h
@@ -502,11 +502,8 @@ static void usb_setup(void) {
502
control_req.length = setup.b.wLength.w;
503
504
resp_len = comms_control_handler(&control_req, response);
505
- // response pending if -1 was returned
506
- if (resp_len != -1) {
507
- USB_WritePacket(response, MIN(resp_len, setup.b.wLength.w), 0);
508
- USBx_OUTEP(0U)->DOEPCTL |= USB_OTG_DOEPCTL_CNAK;
509
- }
+ USB_WritePacket(response, MIN(resp_len, setup.b.wLength.w), 0);
+ USBx_OUTEP(0U)->DOEPCTL |= USB_OTG_DOEPCTL_CNAK;
510
}
511
512
0 commit comments