projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The USB_Host_SendControlRequest() function no longer automatically selects the Contro...
[pub/lufa.git]
/
LUFA
/
Drivers
/
USB
/
HighLevel
/
USBTask.c
diff --git
a/LUFA/Drivers/USB/HighLevel/USBTask.c
b/LUFA/Drivers/USB/HighLevel/USBTask.c
index
395f2d2
..
e62ac68
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/USBTask.c
+++ b/
LUFA/Drivers/USB/HighLevel/USBTask.c
@@
-86,6
+86,10
@@
static void USB_HostTask(void)
static uint16_t WaitMSRemaining;
\r
static uint8_t PostWaitState;
\r
\r
static uint16_t WaitMSRemaining;
\r
static uint8_t PostWaitState;
\r
\r
+ uint8_t PrevPipe = Pipe_GetCurrentPipe();
\r
+
\r
+ Pipe_SelectPipe(PIPE_CONTROLPIPE);
\r
+
\r
switch (USB_HostState)
\r
{
\r
case HOST_STATE_WaitForDevice:
\r
switch (USB_HostState)
\r
{
\r
case HOST_STATE_WaitForDevice:
\r
@@
-249,5
+253,7
@@
static void USB_HostTask(void)
\r
USB_ResetInterface();
\r
}
\r
\r
USB_ResetInterface();
\r
}
\r
+
\r
+ Pipe_SelectPipe(PrevPipe);
\r
}
\r
#endif
\r
}
\r
#endif
\r