From 5d8cdd9bea07acd276b260b34bea299a45a9088a Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 20 Jul 2009 02:59:16 +0000 Subject: Fix unfinished printer host demo - some printer languages use embedded NULLs and so strlen() won't work in all cases. Ensure NULL terminator for the test page is not transmitted to the device. --- Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h') diff --git a/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h b/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h index 01f1f1408..b296d86f6 100644 --- a/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h +++ b/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h @@ -54,7 +54,7 @@ #define PRINTER_DATA_OUT_PIPE 2 /* Function Prototypes: */ - uint8_t Printer_SendData(char* PrinterCommands); + uint8_t Printer_SendData(char* PrinterCommands, uint16_t DataLength); uint8_t Printer_GetDeviceID(char* DeviceIDString, uint8_t BufferSize); uint8_t Printer_GetPortStatus(uint8_t* PortStatus); uint8_t Printer_SoftReset(void); -- cgit v1.2.3