diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-17 14:02:22 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-17 14:02:22 -0600 |
commit | e2a7ac0b42589153fbeb5596f1a8313ba7ffb62a (patch) | |
tree | 6188f03bc2537f9892875b110dbb2a1250a9c261 /nuttx/drivers/usbhost/usbhost_hidmouse.c | |
parent | 1ab1f3da2b44e0528b87000b23da329aec0a522e (diff) | |
download | nuttx-e2a7ac0b42589153fbeb5596f1a8313ba7ffb62a.tar.gz nuttx-e2a7ac0b42589153fbeb5596f1a8313ba7ffb62a.tar.bz2 nuttx-e2a7ac0b42589153fbeb5596f1a8313ba7ffb62a.zip |
SAM3/4 Interrupt initialization. Default interrupt priority not being set correctly
Diffstat (limited to 'nuttx/drivers/usbhost/usbhost_hidmouse.c')
-rw-r--r-- | nuttx/drivers/usbhost/usbhost_hidmouse.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/nuttx/drivers/usbhost/usbhost_hidmouse.c b/nuttx/drivers/usbhost/usbhost_hidmouse.c index 5a9cff0a7..3ad3b51b7 100644 --- a/nuttx/drivers/usbhost/usbhost_hidmouse.c +++ b/nuttx/drivers/usbhost/usbhost_hidmouse.c @@ -1085,16 +1085,14 @@ static int usbhost_mouse_poll(int argc, char *argv[]) { /* If DRVR_TRANSFER() returns EAGAIN, that simply means that * the devices was not ready and has NAK'ed the transfer. That - * no be treated as an error (unless it persists for a long - * time). + * should not be treated as an error (unless it persists for a + * long time). */ udbg("ERROR: DRVR_TRANSFER returned: %d/%d\n", ret, nerrors); if (ret != -EAGAIN) { - nerrors++; - - if (nerrors > 200) + if (++nerrors > 200) { udbg("Too many errors... aborting: %d\n", nerrors); break; |