From: Keith Packard Date: Tue, 9 Feb 2016 03:15:31 +0000 (-0800) Subject: altos: Another fix for non CDC-ACM devices X-Git-Tag: 1.6.3~2^2~100 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=0bae4b25882983cd0b7950b3e80b6d93a72f0847 altos: Another fix for non CDC-ACM devices Need to set the bInterfaceNumber for the actual interface to zero when there isn't an INT interface before it. Signed-off-by: Keith Packard --- diff --git a/src/kernel/ao_product.c b/src/kernel/ao_product.c index a1a9af09..4769d86e 100644 --- a/src/kernel/ao_product.c +++ b/src/kernel/ao_product.c @@ -138,7 +138,7 @@ AO_ROMCONFIG_SYMBOL(0x00aa) uint8_t ao_usb_descriptors [] = /* Data class interface descriptor */ 0x09, AO_USB_DESC_INTERFACE, - 0x01, /* bInterfaceNumber */ + AO_USB_HAS_INT, /* bInterfaceNumber */ 0x00, /* bAlternateSetting */ AO_USB_HAS_OUT + AO_USB_HAS_IN, /* bNumEndPoints */ AO_USB_INTERFACE_CLASS_DATA, /* bInterfaceClass = data */