Fix low level host mode demos not correctly fetching the next endpoint when an invali...
[pub/USBasp.git] / Demos / Host / LowLevel / RNDISEthernetHost / ConfigDescriptor.c
index 0db576f..aa75dd1 100644 (file)
@@ -110,6 +110,9 @@ uint8_t ProcessConfigurationDescriptor(void)
                                /* Clear any found endpoints */
                                NotificationEndpoint = NULL;
                        }
+
+                       /* Skip the remainder of the loop as we have not found an endpoint yet */
+                       continue;
                }
                
                /* Retrieve the endpoint address from the endpoint descriptor */