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