eenurkka commented on code in PR #6602:
URL: https://github.com/apache/incubator-nuttx/pull/6602#discussion_r918677780
##########
arch/risc-v/src/mpfs/mpfs_usb.c:
##########
@@ -1060,7 +1061,8 @@ static int mpfs_req_read(struct mpfs_usbdev_s *priv,
privreq = NULL;
}
- if ((privreq->inflight) && (count != 0))
+ if ((privreq->inflight) && (count != 0) &&
+ (reg & RXCSRL_REG_EPN_RX_PKT_RDY_MASK))
Review Comment:
Yeah, fixed it, thx for pointing it out
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]