Added new PRNT_Host_BytesReceived() and PRNT_Host_ReceiveByte() functions to the Print Host Class driver.
This commit is contained in:
parent
6e011f88d9
commit
7aaf9b2036
6 changed files with 99 additions and 19 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue