1
0
mirror of https://git.familie-radermacher.ch/linux/ptouch-print.git synced 2025-05-13 15:22:56 +00:00

add debug output

This commit is contained in:
Dominic Radermacher 2022-04-05 20:25:54 +02:00
parent e968176637
commit 674e0da5fb

View File

@ -527,6 +527,9 @@ int main(int argc, char *argv[])
printf("tape color = %02x\n", ptdev->status->tape_color);
printf("text color = %02x\n", ptdev->status->text_color);
printf("error = %04x\n", ptdev->status->error);
if (debug) {
ptouch_rawstatus(ptdev->status);
}
exit(0);
} else if (strcmp(&argv[i][1], "-image") == 0) {
if ((im=image_load(argv[++i])) == NULL) {