HOLY SHIT YES
This commit is contained in:
parent
985e556556
commit
4ca1444747
1 changed files with 3 additions and 18 deletions
|
@ -230,27 +230,12 @@ int tabby_printer_send_sheet(int fd, void *data,
|
||||||
goto error_packet_send;
|
goto error_packet_send;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
offset += TABBY_PRINTER_BAND_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
init_header(&header, TABBY_PRINTER_PACKET_DATA, 0);
|
init_header(&header, TABBY_PRINTER_PACKET_DATA, 0);
|
||||||
|
|
||||||
tabby_printer_packet_send(fd, &header, NULL, response);
|
return 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;
|
|
||||||
|
|
||||||
error_packet_send:
|
error_packet_send:
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue