projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Device mode class driver callbacks are now fired before the control request status...
[pub/USBasp.git]
/
Demos
/
DualRole
/
ClassDriver
/
MouseHostDevice
/
HostFunctions.c
diff --git
a/Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c
b/Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c
index
341b0d5
..
22ebc55
100644
(file)
--- a/
Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c
+++ b/
Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c
@@
-142,7
+142,7
@@
void MouseHostTask(void)
break;
\r
}
\r
\r
break;
\r
}
\r
\r
- if (HID_Host_SetBootProtocol(&Mouse_HID_Host_Interface) !=
0
)
\r
+ if (HID_Host_SetBootProtocol(&Mouse_HID_Host_Interface) !=
HOST_SENDCONTROL_Successful
)
\r
{
\r
printf("Could not Set Boot Protocol Mode.\r\n");
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
{
\r
printf("Could not Set Boot Protocol Mode.\r\n");
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r