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.
This commit is contained in:
parent
8a68203d34
commit
5d8cdd9bea
4 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue