projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added new USB_DeviceState variable to keep track of the current Device mode USB state.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
LowLevel
/
Pipe.c
diff --git
a/LUFA/Drivers/USB/LowLevel/Pipe.c
b/LUFA/Drivers/USB/LowLevel/Pipe.c
index
3fb30a2
..
7d3e876
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/Pipe.c
+++ b/
LUFA/Drivers/USB/LowLevel/Pipe.c
@@
-93,7
+93,7
@@
uint8_t Pipe_WaitUntilReady(void)
\r
if (Pipe_IsStalled())
\r
return PIPE_READYWAIT_PipeStalled;
\r
- else if (
!(USB_IsConnected)
)
\r
+ else if (
USB_HostState == HOST_STATE_Unattached
)
\r
return PIPE_READYWAIT_DeviceDisconnected;
\r
\r
if (USB_INT_HasOccurred(USB_INT_HSOFI))
\r