Fix low level host mode demos not correctly fetching the next endpoint when an invali...
[pub/lufa.git] / Demos / Host / LowLevel / KeyboardHost / ConfigDescriptor.c
index dbdfac9..988579c 100644 (file)
@@ -87,6 +87,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 */