Correct Kinetis 256 byte ctrl transfers

Correctly handle control transfers which are a multiple of 256 bytes
by checking for a non-zero value in the upper byte of size.
feature-hal-spec-usb-device
Russ Butler 2018-03-20 14:46:55 -05:00
parent 0f2b808c88
commit c443a259dc
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ bool USBPhyHw::endpoint_read_result_core(usb_ep_t endpoint, uint8_t *data, uint3
if (setup) {
// Record the setup type
if (data[6] == 0) {
if ((data[6] == 0) && (data[7] == 0)) {
ctrl_xfer = CTRL_XFER_NONE;
} else {
uint8_t in_xfer = (data[0] >> 7) & 1;