Fix low level host mode demos not correctly fetching the next endpoint when an invali...
[pub/lufa.git] / Demos / Host / LowLevel / GenericHIDHost / ConfigDescriptor.c
index 40bc98e..2de7b72 100644 (file)
@@ -96,6 +96,9 @@ uint8_t ProcessConfigurationDescriptor(void)
                                /* Descriptor not found, error out */
                                return NoCompatibleInterfaceFound;
                        }
+                       
+                       /* Skip the remainder of the loop as we have not found an endpoint yet */
+                       continue;
                }
                
                /* Retrieve the endpoint address from the endpoint descriptor */