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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user