aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/LowLevel/PrinterHost/Lib
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-09-07 03:38:11 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-09-07 03:38:11 +0000
commit7aaf9b2036784fadff048172029d0a2029da0ec9 (patch)
tree351a74c41f7fdf32bc4904b942b48e7975fdbc1a /Demos/Host/LowLevel/PrinterHost/Lib
parent6e011f88d9c9fac534958ca83e3f460de7fa1497 (diff)
downloadlufa-7aaf9b2036784fadff048172029d0a2029da0ec9.tar.gz
lufa-7aaf9b2036784fadff048172029d0a2029da0ec9.tar.bz2
lufa-7aaf9b2036784fadff048172029d0a2029da0ec9.zip
Added new PRNT_Host_BytesReceived() and PRNT_Host_ReceiveByte() functions to the Print Host Class driver.
Diffstat (limited to 'Demos/Host/LowLevel/PrinterHost/Lib')
-rw-r--r--Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c
index ac0ca9a2b..0b75d7507 100644
--- a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c
+++ b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c
@@ -56,11 +56,8 @@ uint8_t Printer_SendData(const void* const PrinterCommands,
return ErrorCode;
Pipe_ClearOUT();
- while (!(Pipe_IsOUTReady()))
- {
- if (USB_HostState == HOST_STATE_Unattached)
- return PIPE_RWSTREAM_DeviceDisconnected;
- }
+
+ Pipe_WaitUntilReady();
Pipe_Freeze();