Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
1e1cf2c4
Commit
1e1cf2c4
authored
Jan 04, 2010
by
Dean Camera
Browse files
Fix CDC blocking streams in Host mode locking up when the device is removed.
parent
71e5bcee
Changes
1
Hide whitespace changes
Inline
Side-by-side
LUFA/Drivers/USB/Class/Host/CDC.c
View file @
1e1cf2c4
...
...
@@ -445,6 +445,9 @@ static int CDC_Host_getchar_Blocking(FILE* Stream)
{
while
(
!
(
CDC_Host_BytesReceived
((
USB_ClassInfo_CDC_Host_t
*
)
fdev_get_udata
(
Stream
))))
{
if
(
USB_HostState
==
HOST_STATE_Unattached
)
return
_FDEV_EOF
;
CDC_Host_USBTask
((
USB_ClassInfo_CDC_Host_t
*
)
fdev_get_udata
(
Stream
));
USB_USBTask
();
}
...
...
Write
Preview
Markdown
is supported
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