X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/08f448407bc3718c9434dadd26b4266e42e0f21d..64e93612988e88e70d995987588b32c99cf91e3b:/Demos/Host/LowLevel/AndroidAccessoryHost/ConfigDescriptor.c diff --git a/Demos/Host/LowLevel/AndroidAccessoryHost/ConfigDescriptor.c b/Demos/Host/LowLevel/AndroidAccessoryHost/ConfigDescriptor.c index 29fbfcaaa..487d51898 100644 --- a/Demos/Host/LowLevel/AndroidAccessoryHost/ConfigDescriptor.c +++ b/Demos/Host/LowLevel/AndroidAccessoryHost/ConfigDescriptor.c @@ -66,7 +66,7 @@ uint8_t ProcessConfigurationDescriptor(void) default: return DevControlError; } - + /* There should be only one compatible Android Accessory Mode interface in the device, attempt to find it */ if (USB_GetNextDescriptorComp(&CurrConfigBytesRem, &CurrConfigLocation, DCOMP_NextAndroidAccessoryInterface) != DESCRIPTOR_SEARCH_COMP_Found) @@ -123,9 +123,9 @@ uint8_t DCOMP_NextAndroidAccessoryInterface(void* const CurrentDescriptor) { USB_Descriptor_Interface_t* Interface = DESCRIPTOR_PCAST(CurrentDescriptor, USB_Descriptor_Interface_t); - if ((Interface->Class == ANDROID_INTERFACE_CLASS) && - (Interface->SubClass == ANDROID_INTERFACE_SUBCLASS) && - (Interface->Protocol == ANDROID_INTERFACE_PROTOCOL)) + if ((Interface->Class == AOA_CSCP_AOADataClass) && + (Interface->SubClass == AOA_CSCP_AOADataSubclass) && + (Interface->Protocol == AOA_CSCP_AOADataProtocol)) { return DESCRIPTOR_SEARCH_Found; }