From 4ca1444747075b973efcc43e0ce3951fa6c57964 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 5 Jun 2016 22:54:31 -0500 Subject: [PATCH] HOLY SHIT YES --- src/printer.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/printer.c b/src/printer.c index 79dd00f..6520598 100644 --- a/src/printer.c +++ b/src/printer.c @@ -230,27 +230,12 @@ int tabby_printer_send_sheet(int fd, void *data, goto error_packet_send; } - init_header(&header, TABBY_PRINTER_PACKET_DATA, 0); - - tabby_printer_packet_send(fd, &header, NULL, response); - - if (i == 0) { - tabby_printer_job_start(fd, 1, 0x10, 0x00, 0x40, ¤t); - } else if (i < TABBY_PRINTER_SHEET_BANDS - 1) { - tabby_printer_job_start(fd, 1, 0x00, 0x00, 0x40, ¤t); - } else if (i == TABBY_PRINTER_SHEET_BANDS - 1) { - tabby_printer_job_start(fd, 1, 0x03, 0x00, 0x40, ¤t); - } - offset += TABBY_PRINTER_BAND_SIZE; - - while (current.status) { - tabby_printer_send_inquiry(fd, ¤t); - usleep(1000000); - } } - return 0; + init_header(&header, TABBY_PRINTER_PACKET_DATA, 0); + + return tabby_printer_packet_send(fd, &header, NULL, response); error_packet_send: return -1;