From 7166c7ba3e27f3458b83360302c8af8a866f7a34 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 30 Sep 2010 07:56:47 +0000 Subject: Fix low level host mode demos not correctly fetching the next endpoint when an invalid interface is discarded. Update the pipe configuration routines in the host mode class drivers so that they use the same new code to enumerate compatible devices to increase reliability. Add support to the host mode class drivers for non-sequential (but non-overlapping with other interface) pipe numbers. --- Demos/Host/LowLevel/JoystickHostWithParser/ConfigDescriptor.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Demos/Host/LowLevel/JoystickHostWithParser/ConfigDescriptor.c') diff --git a/Demos/Host/LowLevel/JoystickHostWithParser/ConfigDescriptor.c b/Demos/Host/LowLevel/JoystickHostWithParser/ConfigDescriptor.c index dfca7b407..1d8265043 100644 --- a/Demos/Host/LowLevel/JoystickHostWithParser/ConfigDescriptor.c +++ b/Demos/Host/LowLevel/JoystickHostWithParser/ConfigDescriptor.c @@ -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 */ -- cgit v1.2.3