Still no closer to a solution :(

This commit is contained in:
XANTRONIX Development 2016-06-05 02:39:06 -05:00
parent 70f1fc349e
commit fbb785945b

View file

@ -63,24 +63,24 @@ int main(int argc, char **argv) {
tabby_printer_link_init(fd);
tabby_printer_init(fd, &response);
do {
tabby_printer_init(fd, &response);
printf("Initializing printer, got response %02x%02x\n",
response.device, response.status);
while (response.device != 0x81) {
tabby_printer_send_inquiry(fd, &response);
printf("Waiting for printer, status %02x%02x\n",
response.device, response.status);
}
usleep(100000);
} while (response.device != TABBY_PRINTER_DEVICE_ID);
tabby_printer_send_sheet(fd, tile, &response);
printf("Sent sheet, got response %02x%02x\n",
response.device, response.status);
tabby_printer_job_start(fd, 1, 0x13, 0, 0x40, &response);
while (response.status & TABBY_PRINTER_UNTRAN) {
tabby_printer_send_inquiry(fd, &response);
usleep(100000);
}
tabby_printer_job_start(fd, 1, 0x13, 0xe4, 0x40, &response);
printf("Started job, got status %02x%02x\n",
response.device, response.status);
@ -88,7 +88,7 @@ int main(int argc, char **argv) {
while (response.status) {
tabby_printer_send_inquiry(fd, &response);
printf("Printer status %02x%02x\n",
printf("Printing, status %02x%02x\n",
response.device, response.status);
sleep(1);