Browse Source

Merge pull request #163 from hathach/develop

fix #143
hathach 6 years ago
parent
commit
0c70948d0d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/portable/nxp/lpc17_40/dcd_lpc17_40.c

+ 1 - 1
src/portable/nxp/lpc17_40/dcd_lpc17_40.c

@@ -293,7 +293,7 @@ bool dcd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc)
       break;
 
     case TUSB_XFER_ISOCHRONOUS:
-      TU_ASSERT((epnum % 3) == 3 && (epnum != 15));
+      TU_ASSERT((epnum % 3) == 0 && (epnum != 0) && (epnum != 15));
       break;
 
     default: