Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ql570.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <stdint.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>

#define PNG_DEBUG 3
#include <png.h>
Expand Down Expand Up @@ -93,10 +94,10 @@ void ql570_print(pngdata_t * img, unsigned int paper_width)
}

/* Set cut type */
fprintf(fp, "%c%c%c", ESC, 'i', 'K', 8);
fprintf(fp, "%c%c%c%c", ESC, 'i', 'K', 8);

/* Enable cutter */
fprintf(fp, "%c%c%c", ESC, 'i', 'A', 1);
fprintf(fp, "%c%c%c%c", ESC, 'i', 'A', 1);

/* Set margin = 0 */
fprintf(fp, "%c%c%c%c%c", ESC, 'i', 'd', 0, 0);
Expand Down