1
0
mirror of https://git.familie-radermacher.ch/linux/ptouch-print.git synced 2025-08-14 16:03:25 +00:00

Send chain magic after precut

This lets you do chain mode with a precut first.
This commit is contained in:
Frost 2025-08-06 23:25:28 -07:00 committed by Dominic Radermacher
parent f59e19349b
commit f1c34dd0d4

View File

@ -110,12 +110,6 @@ int print_img(ptouch_dev ptdev, gdImage *im, int chain)
}
}
if ((ptdev->devinfo->flags & FLAG_D460BT_MAGIC) == FLAG_D460BT_MAGIC) {
if (chain) {
ptouch_send_d460bt_chain(ptdev);
if (debug) {
printf(_("send PT-D460BT chain commands\n"));
}
}
ptouch_send_d460bt_magic(ptdev);
if (debug) {
printf(_("send PT-D460BT magic commands\n"));
@ -127,6 +121,15 @@ int print_img(ptouch_dev ptdev, gdImage *im, int chain)
printf(_("send precut command\n"));
}
}
/* send chain command after precut, to allow precutting before chain */
if ((ptdev->devinfo->flags & FLAG_D460BT_MAGIC) == FLAG_D460BT_MAGIC) {
if (chain) {
ptouch_send_d460bt_chain(ptdev);
if (debug) {
printf(_("send PT-D460BT chain commands\n"));
}
}
}
for (int k = 0; k < gdImageSX(im); ++k) {
memset(rasterline, 0, sizeof(rasterline));
for (int i = 0; i < gdImageSY(im); ++i) {