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
c38d1c1ec9
commit
bc5634d2ad
@ -1003,7 +1003,7 @@ static inline int lpc17_reminted(struct lpc17_usbhost_s *priv,
|
|||||||
* entries, OUT EDs get the odd entries.
|
* 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;
|
offset = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user