[HAL:LPC]: USB Bugfix
This commit is contained in:
parent
638f45982d
commit
9e44155cde
|
@ -218,12 +218,12 @@ OSAL_IRQ_HANDLER(LPC_USB_IRQ_VECTOR) {
|
|||
} else {
|
||||
// OUT endpoint, receive
|
||||
USBOutEndpointState *osp = usbp->epc[ep]->out_state;
|
||||
size_t n = 0;
|
||||
if (osp->rxsize > 0) {
|
||||
osalSysLockFromISR();
|
||||
n = usb_packet_receive(usbp, ep);
|
||||
usb_packet_receive(usbp, ep);
|
||||
osalSysUnlockFromISR();
|
||||
} else {
|
||||
}
|
||||
if (osp->rxsize == 0) { // TODO: Check if this is correct
|
||||
_usb_isr_invoke_out_cb(usbp, ep);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue