Fixed incorrect signature reported in the CDC class bootloader for the ATMEGA32U2.
[pub/USBasp.git] / Demos / Host / LowLevel / PrinterHost / Lib / PrinterCommands.c
index ac0ca9a..0b75d75 100644 (file)
@@ -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();