mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
SAM3/4 Interrupt initialization. Default interrupt priority not being set correctly
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user