X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/8a68203d3451c50c573c6baf4850e72d8dbabfcb..5d8cdd9bea07acd276b260b34bea299a45a9088a:/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c diff --git a/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c b/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c index 668421d91..03d307094 100644 --- a/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c +++ b/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.c @@ -37,14 +37,14 @@ * * \return A value from the Pipe_Stream_RW_ErrorCodes_t enum */ -uint8_t Printer_SendData(char* PrinterCommands) +uint8_t Printer_SendData(char* PrinterCommands, uint16_t DataLength) { uint8_t ErrorCode; Pipe_SelectPipe(PRINTER_DATA_OUT_PIPE); Pipe_Unfreeze(); - if ((ErrorCode = Pipe_Write_Stream_LE(PrinterCommands, strlen(PrinterCommands))) != PIPE_RWSTREAM_NoError) + if ((ErrorCode = Pipe_Write_Stream_LE(PrinterCommands, DataLength)) != PIPE_RWSTREAM_NoError) return ErrorCode; Pipe_ClearOUT();