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:
parent
f59e19349b
commit
f1c34dd0d4
@ -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 ((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);
|
ptouch_send_d460bt_magic(ptdev);
|
||||||
if (debug) {
|
if (debug) {
|
||||||
printf(_("send PT-D460BT magic commands\n"));
|
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"));
|
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) {
|
for (int k = 0; k < gdImageSX(im); ++k) {
|
||||||
memset(rasterline, 0, sizeof(rasterline));
|
memset(rasterline, 0, sizeof(rasterline));
|
||||||
for (int i = 0; i < gdImageSY(im); ++i) {
|
for (int i = 0; i < gdImageSY(im); ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user