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 RNDIS Host class driver and the beginnings of a RNDISEthernetHost Class...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Host
/
Printer.c
diff --git
a/LUFA/Drivers/USB/Class/Host/Printer.c
b/LUFA/Drivers/USB/Class/Host/Printer.c
index
192e17f
..
d85ac15
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Host/Printer.c
+++ b/
LUFA/Drivers/USB/Class/Host/Printer.c
@@
-187,6
+187,9
@@
uint8_t PRNT_Host_SendData(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo, v
{
\r
uint8_t ErrorCode;
\r
\r
{
\r
uint8_t ErrorCode;
\r
\r
+ if ((USB_HostState != HOST_STATE_Configured) || !(PRNTInterfaceInfo->State.IsActive))
\r
+ return PIPE_RWSTREAM_DeviceDisconnected;
\r
+
\r
Pipe_SelectPipe(PRNTInterfaceInfo->Config.DataOUTPipeNumber);
\r
Pipe_Unfreeze();
\r
\r
Pipe_SelectPipe(PRNTInterfaceInfo->Config.DataOUTPipeNumber);
\r
Pipe_Unfreeze();
\r
\r