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:
parent
7445683997
commit
ac3377bed1
1 changed files with 7 additions and 9 deletions
14
bin/print.c
14
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_start(printer, 1, 0x00, 0x00, 0x40);
|
||||
|
||||
tabby_printer_job_wait(printer);
|
||||
}
|
||||
|
||||
tabby_printer_close(printer);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue