diff options
author | Dean Camera <[email protected]> | 2009-04-14 08:35:47 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2009-04-14 08:35:47 +0000 |
commit | 6a5a37d7d141f109dc02d0bb6d8f4757b533408d (patch) | |
tree | 6ec5a4528b25d8531d508348caa8f297d3aa5b1d /Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c | |
parent | fea5d085122bb386f1ec293b2e51036e29c7dc30 (diff) | |
download | qmk_firmware-6a5a37d7d141f109dc02d0bb6d8f4757b533408d.tar.gz qmk_firmware-6a5a37d7d141f109dc02d0bb6d8f4757b533408d.zip |
The USB_Host_SendControlRequest() function no longer automatically selects the Control pipe (pipe 0), so that other control type pipes can be used with the function.
The USB Host management task now saves and restores the currently selected pipe before and after the task completes.
Diffstat (limited to 'Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c')
-rw-r--r-- | Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c b/Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c index eefd2fa56b..d19929d4d1 100644 --- a/Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c +++ b/Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c @@ -199,6 +199,9 @@ TASK(USB_Keyboard_Host) wLength: 0,
};
+ /* Select the control pipe for the request transfer */
+ Pipe_SelectPipe(PIPE_CONTROLPIPE);
+
/* Send the request, display error and wait for device detach if request fails */
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
{
|