aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/KeyboardHost
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-04-20 13:24:25 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-04-20 13:24:25 +0000
commitba7cd3f22e0ec8c2fc7fd5dae3620aa75d926fd3 (patch)
tree2d7092a46f7b721cd82ebdc875d56a30843b247b /Demos/Host/KeyboardHost
parent37b2130fb2767a39f3d95414c6aca75a67c26298 (diff)
downloadlufa-ba7cd3f22e0ec8c2fc7fd5dae3620aa75d926fd3.tar.gz
lufa-ba7cd3f22e0ec8c2fc7fd5dae3620aa75d926fd3.tar.bz2
lufa-ba7cd3f22e0ec8c2fc7fd5dae3620aa75d926fd3.zip
Fix errors in the KeyboardHost demo which prevented correct compilation.
Diffstat (limited to 'Demos/Host/KeyboardHost')
-rw-r--r--Demos/Host/KeyboardHost/ConfigDescriptor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Host/KeyboardHost/ConfigDescriptor.c b/Demos/Host/KeyboardHost/ConfigDescriptor.c
index 7cbf9484b..0b475bfaa 100644
--- a/Demos/Host/KeyboardHost/ConfigDescriptor.c
+++ b/Demos/Host/KeyboardHost/ConfigDescriptor.c
@@ -117,13 +117,13 @@ DESCRIPTOR_COMPARATOR(NextKeyboardInterface)
{
/* Check the HID descriptor class and protocol, break out if correct class/protocol interface found */
if ((DESCRIPTOR_CAST(CurrentDescriptor, USB_Descriptor_Interface_t).Class == KEYBOARD_CLASS) &&
- (DESCRIPTOR_CAST(CurrentDescriptor, USB_Descriptor_Interface_t).Subclass == KEYBOARD_SUBCLASS))
+ (DESCRIPTOR_CAST(CurrentDescriptor, USB_Descriptor_Interface_t).Protocol == KEYBOARD_PROTOCOL))
{
return DESCRIPTOR_SEARCH_Found;
}
}
- return Descriptor_Search_NotFound;
+ return DESCRIPTOR_SEARCH_NotFound;
}
/** Descriptor comparator function. This comparator function is can be called while processing an attached USB device's