mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-01 10:20:38 +00:00
Fix handling of RXRDY bit
This commit is contained in:
parent
1ffc366aa9
commit
96979a2c4a
@ -598,12 +598,12 @@ static bool handle_xfer_out(uint_fast8_t ep_addr)
|
|||||||
pipe->buf = buf + len;
|
pipe->buf = buf + len;
|
||||||
}
|
}
|
||||||
pipe->remaining = rem - len;
|
pipe->remaining = rem - len;
|
||||||
__USBC_Dev_Rx_ReadDataComplete();
|
|
||||||
}
|
}
|
||||||
if ((len < mps) || (rem == len)) {
|
if ((len < mps) || (rem == len)) {
|
||||||
pipe->buf = NULL;
|
pipe->buf = NULL;
|
||||||
return NULL != buf;
|
return NULL != buf;
|
||||||
}
|
}
|
||||||
|
__USBC_Dev_Rx_ReadDataComplete();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user