projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new error condition to the HID Report Parser for when a report is parsed but...
[pub/USBasp.git]
/
Demos
/
Host
/
ClassDriver
/
KeyboardHostWithParser
/
KeyboardHostWithParser.c
diff --git
a/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
b/Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
index
d898074
..
e9af0c0
100644
(file)
--- a/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
+++ b/
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
@@
-106,7
+106,7
@@
int main(void)
\r
if (USB_HID_Host_SetReportProtocol(&Keyboard_HID_Interface) != 0)
\r
{
\r
\r
if (USB_HID_Host_SetReportProtocol(&Keyboard_HID_Interface) != 0)
\r
{
\r
- printf("
Could not Set Report Protocol Mode
.\r\n");
\r
+ printf("
Error Setting Report Protocol Mode or Not a Valid Keyboard
.\r\n");
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
\r
break;
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
\r
break;
\r
@@
-114,7
+114,7
@@
int main(void)
\r
LEDs_SetAllLEDs(LEDS_NO_LEDS);
\r
\r
\r
LEDs_SetAllLEDs(LEDS_NO_LEDS);
\r
\r
- printf("
HID Device
Enumerated.\r\n");
\r
+ printf("
Keyboard
Enumerated.\r\n");
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r
case HOST_STATE_Configured:
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r
case HOST_STATE_Configured:
\r