From ba7cd3f22e0ec8c2fc7fd5dae3620aa75d926fd3 Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Mon, 20 Apr 2009 13:24:25 +0000
Subject: [PATCH] Fix errors in the KeyboardHost demo which prevented correct
 compilation.

---
 Demos/Host/KeyboardHost/ConfigDescriptor.c | 4 ++--
 Demos/Host/makefile                        | 2 +-
 2 files changed, 3 insertions(+), 3 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
diff --git a/Demos/Host/makefile b/Demos/Host/makefile
index 2bf8adb7a..82661fffc 100644
--- a/Demos/Host/makefile
+++ b/Demos/Host/makefile
@@ -21,7 +21,7 @@ all:
 	make -C GenericHIDHost all	
 
 	make -C KeyboardHost clean
-	make -C KeyboardHostWithParser all	
+	make -C KeyboardHost all	
 
 	make -C MassStorageHost clean
 	make -C MassStorageHost all	
-- 
GitLab