Correct a crash when keyboard removed
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3266 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
f8ba6a446f
commit
911c2f74b3
@ -1003,7 +1003,7 @@ static inline int lpc17_reminted(struct lpc17_usbhost_s *priv,
|
||||
* entries, OUT EDs get the odd entries.
|
||||
*/
|
||||
|
||||
if ((ed->hw.ctrl && ED_CONTROL_D_MASK) == ED_CONTROL_D_IN)
|
||||
if ((ed->hw.ctrl & ED_CONTROL_D_MASK) == ED_CONTROL_D_IN)
|
||||
{
|
||||
offset = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user