From ac3377bed199d538fb01a74572a795cb163b06c0 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 10 Jun 2016 03:30:58 +0000 Subject: [PATCH] Eventually I'll make feeds something you specify at the stop and start of a command invocation or whatever. Man I'm drunk --- bin/print.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/bin/print.c b/bin/print.c index 8cc6207..f575929 100644 --- a/bin/print.c +++ b/bin/print.c @@ -65,23 +65,21 @@ int tabby_command_print(int argc, char **argv) { tabby_printer_band_send(printer, band); if (offset % TABBY_PRINTER_SHEET_SIZE == 0) { - uint8_t feeds = 0x00; - - if (offset == TABBY_PRINTER_SHEET_SIZE) { - feeds |= 0x10; - } - tabby_printer_band_finish(printer); - tabby_printer_job_start(printer, 1, feeds, 0x00, 0x40); + tabby_printer_job_start(printer, 1, 0x00, 0x00, 0x40); tabby_printer_job_wait(printer); } } - tabby_printer_job_start(printer, 1, 0x03, 0x00, 0x40); + if (offset % TABBY_PRINTER_SHEET_SIZE) { + tabby_printer_band_finish(printer); - tabby_printer_job_wait(printer); + tabby_printer_job_start(printer, 1, 0x00, 0x00, 0x40); + + tabby_printer_job_wait(printer); + } tabby_printer_close(printer);