Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
526e3989
Commit
526e3989
authored
May 07, 2009
by
Dean Camera
Browse files
Fixed inability to enumerate any devices while in host mode (broken in a previous commit).
parent
2bd88ebc
Changes
3
Show whitespace changes
Inline
Side-by-side
LUFA/Drivers/USB/HighLevel/USBTask.c
View file @
526e3989
...
...
@@ -83,12 +83,11 @@ static void USB_HostTask(void)
{
uint8_t
ErrorCode
=
HOST_ENUMERROR_NoError
;
uint8_t
SubErrorCode
=
HOST_ENUMERROR_NoError
;
uint8_t
PrevPipe
=
Pipe_GetCurrentPipe
();
static
uint16_t
WaitMSRemaining
;
static
uint8_t
PostWaitState
;
uint8_t
PrevPipe
=
Pipe_GetCurrentPipe
();
Pipe_SelectPipe
(
PIPE_CONTROLPIPE
);
switch
(
USB_HostState
)
...
...
@@ -176,10 +175,10 @@ static void USB_HostTask(void)
.
bRequest
=
REQ_GetDescriptor
,
.
wValue
=
(
DTYPE_Device
<<
8
),
.
wIndex
=
0
,
.
wLength
=
PIPE_CONTROLPIPE_DEFAULT_SIZE
,
.
wLength
=
8
,
};
uint8_t
DataBuffer
[
PIPE_CONTROLPIPE_DEFAULT_SIZE
];
uint8_t
DataBuffer
[
8
];
if
((
SubErrorCode
=
USB_Host_SendControlRequest
(
DataBuffer
))
!=
HOST_SENDCONTROL_Successful
)
{
...
...
LUFA/Drivers/USB/LowLevel/DevChapter9.c
View file @
526e3989
LUFA/Drivers/USB/LowLevel/Host.h
View file @
526e3989
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment