mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
0f2b808c88
commit
c443a259dc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue