diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-20 01:09:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-20 01:09:06 +0000 |
commit | 85a4296a6104cdee15aebad44732cf4d3d619710 (patch) | |
tree | 213b3a83ef4d73bbc035987d8fe889c7daae5895 | |
parent | 279d5d3d5b47a96c7fad63f7cd21b2af79adee2b (diff) | |
download | nuttx-85a4296a6104cdee15aebad44732cf4d3d619710.tar.gz nuttx-85a4296a6104cdee15aebad44732cf4d3d619710.tar.bz2 nuttx-85a4296a6104cdee15aebad44732cf4d3d619710.zip |
Correct a crash when keyboard removed
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3266 42af7a65-404d-4744-a932-0658087f49c3
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c index 3944b22aa..735665c37 100755 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c @@ -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; } |