aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-20 02:59:16 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-20 02:59:16 +0000
commit5d8cdd9bea07acd276b260b34bea299a45a9088a (patch)
tree5a6d883cd12ea59d4e36f54654d7b96d3b99930d /Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h
parent8a68203d3451c50c573c6baf4850e72d8dbabfcb (diff)
downloadlufa-5d8cdd9bea07acd276b260b34bea299a45a9088a.tar.gz
lufa-5d8cdd9bea07acd276b260b34bea299a45a9088a.tar.bz2
lufa-5d8cdd9bea07acd276b260b34bea299a45a9088a.zip
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.
Diffstat (limited to 'Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h')
-rw-r--r--Demos/Host/Incomplete/PrinterHost/Lib/PrinterCommands.h2
1 files changed, 1 insertions, 1 deletions
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);