projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed inability to enumerate any devices while in host mode (broken in a previous...
[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
738dc15
..
5202cc8
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/USBTask.c
+++ b/
LUFA/Drivers/USB/HighLevel/USBTask.c
@@
-83,12
+83,11
@@
static void USB_HostTask(void)
{
\r
uint8_t ErrorCode = HOST_ENUMERROR_NoError;
\r
uint8_t SubErrorCode = HOST_ENUMERROR_NoError;
\r
{
\r
uint8_t ErrorCode = HOST_ENUMERROR_NoError;
\r
uint8_t SubErrorCode = HOST_ENUMERROR_NoError;
\r
+ uint8_t PrevPipe = Pipe_GetCurrentPipe();
\r
\r
static uint16_t WaitMSRemaining;
\r
static uint8_t PostWaitState;
\r
\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
Pipe_SelectPipe(PIPE_CONTROLPIPE);
\r
\r
switch (USB_HostState)
\r
@@
-176,10
+175,10
@@
static void USB_HostTask(void)
.bRequest = REQ_GetDescriptor,
\r
.wValue = (DTYPE_Device << 8),
\r
.wIndex = 0,
\r
.bRequest = REQ_GetDescriptor,
\r
.wValue = (DTYPE_Device << 8),
\r
.wIndex = 0,
\r
- .wLength =
PIPE_CONTROLPIPE_DEFAULT_SIZE
,
\r
+ .wLength =
8
,
\r
};
\r
\r
};
\r
\r
- uint8_t DataBuffer[
PIPE_CONTROLPIPE_DEFAULT_SIZE
];
\r
+ uint8_t DataBuffer[
8
];
\r
\r
if ((SubErrorCode = USB_Host_SendControlRequest(DataBuffer)) != HOST_SENDCONTROL_Successful)
\r
{
\r
\r
if ((SubErrorCode = USB_Host_SendControlRequest(DataBuffer)) != HOST_SENDCONTROL_Successful)
\r
{
\r