projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e36117c
)
altos: Another fix for non CDC-ACM devices
author
Keith Packard
<keithp@keithp.com>
Tue, 9 Feb 2016 03:15:31 +0000
(19:15 -0800)
committer
Keith Packard
<keithp@keithp.com>
Tue, 9 Feb 2016 03:15:31 +0000
(19:15 -0800)
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 <keithp@keithp.com>
src/kernel/ao_product.c
patch
|
blob
|
history
diff --git
a/src/kernel/ao_product.c
b/src/kernel/ao_product.c
index a1a9af09ad4b53680402fdb154561976aa2e0c4f..4769d86efef2efe38c9f1f8eae87695d66d2ec99 100644
(file)
--- 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 */