Eventually I'll make feeds something you specify at the stop and start of a command invocation or whatever. Man I'm drunk

This commit is contained in:
XANTRONIX Development 2016-06-10 03:30:58 +00:00
parent 7445683997
commit ac3377bed1

View file

@ -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);